RMAN ??????????SQL???
???????????? ???????[ 2013/6/8 10:18:44 ] ????????
????b?????SQL?????????£?????κν?????
RMAN> sql 'select sysdate from dual';
sql statement: select sysdate from dual
RMAN> sql ' select * from v$database ';
sql statement: select * from v$database
????c????д???·???????????SQL???
--???????????????????????????????????????·??????????????
RMAN> sql ' create tablespace ts1 datafile '/u02/database/GOBO1/oradata/ts1.dbf' size 10m ';
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01006: error signalled during parse
RMAN-02001: unrecognized punctuation symbol "/"
--?????SQL?????????
RMAN> sql "create tablespace ts1 datafile ''/u02/database/GOBO1/oradata/ts1.dbf'' size 10m";
sql statement: create tablespace ts1 datafile ''/u02/database/GOBO1/oradata/ts1.dbf'' size 10m
????d?????PL/SQL??
RMAN> sql ' begin dbms_lock.sleep(3); end;';
sql statement: begin dbms_lock.sleep(3); end;
????e??rman??????????PL/SQL??
RMAN> run{
2> sql ' begin dbms_lock.sleep(3); end; ';
3> }
sql statement: begin dbms_lock.sleep(3); end;
RMAN> run {
2> sql ' drop tablespace ts1 including contents and datafiles ';
3> }
sql statement: drop tablespace ts1 including contents and datafiles
RMAN> shutdown immediate;
database closed
database dismounted
Oracle instance shut down
????f???л????????????
RMAN> host;
robin@SZDB:~> exit
exit
host command complete
RMAN>
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11