MasterofProject

Oracle boot from the start to the mount (DG single target)

Label Oracle boot from the start to the mountDG single
687 people reading comments(0) Collection Report
Classification:

Write a small script, used in the DG terminal boot from the start:

# /bin/sh!
#db auto be mount status when OS restart
#20151224

Su - Oracle -c'sqlplus / as sysdba'<<EOF

Startup nomount;
Alter database mount standby database;
Alter database recover managed standby database using current logfile disconnect from session;
EOF

Su - Oracle -c'lsnrctl start'

Write a sh file, give x permission, then put the script into rc.local, you can!!

top
Zero
tread
Zero
Guess you're looking for
View comments
* the above user comments represent the personal views do not represent the views or position of the CSDN website
    personal data
    • Visit23266 times
    • Integral:One thousand seven hundred and sixty-five
    • Grade
    • Ranking:13654th
    • Original145
    • Reprint:37
    • Translation:13
    • Comment:9
    Blog column
    The latest comments