--檢視當前使用者的所有序列 select SEQUENCE_OWNER,SEQUENCE_NAME from dba_sequences where sequence_owner="使用者名稱"; --查詢當前使用者的序列總數 select count(*) from dba_sequences where sequence_owner="使用者名稱";
select SEQUENCE_OWNER,SEQUENCE_NAME from dba_sequences where sequence_owner="PPNIE";
select "drop sequence " ||SEQUENCE_NAME ||" ;" from dba_sequences where sequence_owner="PPNIE";
--檢視當前使用者的所有序列 select SEQUENCE_OWNER,SEQUENCE_NAME from dba_sequences where sequence_owner="使用者名稱"; --查詢當前使用者的序列總數 select count(*) from dba_sequences where sequence_owner="使用者名稱";
select SEQUENCE_OWNER,SEQUENCE_NAME from dba_sequences where sequence_owner="PPNIE";
select "drop sequence " ||SEQUENCE_NAME ||" ;" from dba_sequences where sequence_owner="PPNIE";
注意事項:
1. 必須以管理員身份登入;
2. sequence_owner必須為大寫,不管你的使用者名稱是否大寫。只有大寫才能識別。