ORA-28009: connection to sys should be as sysdba or sysoper
sqlplus /nolog
connect sys as sysdba
sqlplus "sys/hogepass@hogetns as sysdba"
SQL> select sid,serial#,status,osuser,username,machine from v$session 2 where username='hoge'; SID SERIAL# ---------- ---------- 9 87
select * from v$license;
select * from v$open_cursor;
CREATE OR REPLACE TRIGGER LOG_LOGON AFTER LOGON ON DATABASE BEGIN INSERT INTO TBL_TEST VALUES(1,1); END;
select * from dba_data_files;
alter tablespace testspace OFFLINE; alter tablespace testspace ONLINE;
C:\oracle\ora81\sqlplus\admin\glogin.sql --orignal set lines 160; set pages 60; --set heading off; select * from v$version; select * from global_name; select host_name,instance_name from v$instance; set time on; --set heading on; --set pause on;
oraadim -DELETE -SID sid
OracleServicesid?
oracle_home\oradata\sid oracle_home\admin\sid
OracleDatabaseConfiguration?
Oracle9i
\oracle\ora92\rdbms\admin\utlxplan.sql
Oracle10g
\oracle\product\10.1.0\Db_1\RDBMS\ADMIN\utlxplan.sql
update test1 a1 set (a1.c,a1.d) = ( select ba.c,ba.d from test2 ba where a1.a=ba.a and a1.b=ba.b ) where exists( select * from test2 ba where a1.a=ba.a and a1.b=ba.b )
select * from user_recyclebin;
flashback table tablename to before drop;
PURGE RECYCLEBIN
PURGE TABLE tablename
http://www.atmarkit.co.jp/bbs/phpBB/viewtopic.php?topic=31968&forum=12&6