Professional Documents
Culture Documents
root@172.168.1.200's password:
Last login: Sun May 8 15:44:53 2016
[root@prod200 ~]# su - oracle
[oracle@prod200 ~]$ ls
oradiag_oracle prod.env
[oracle@prod200 ~]$ . prod.env
[oracle@prod200 ~]$ pwd
/home/oracle
[oracle@prod200 ~]$ cd $ORACLE_HOME
[oracle@prod200 11.2.0]$ sl -lrt
-bash: sl: command not found
[oracle@prod200 11.2.0]$ ls -lrt
total 308
-rw-r----- 1 oracle oinstall 56 Nov 29 22:45 oraInst.loc
drwxr-xr-x 3 oracle oinstall 4096 Nov 29 22:45 wwg
drwxr-xr-x 4 oracle oinstall 4096 Nov 29 22:45 uix
drwxr-xr-x 3 oracle oinstall 4096 Nov 29 22:45 sqlj
drwxr-xr-x 3 oracle oinstall 4096 Nov 29 22:45 slax
drwxr-xr-x 4 oracle oinstall 4096 Nov 29 22:45 scheduler
drwxr-xr-x 7 oracle oinstall 4096 Nov 29 22:45 precomp
drwxr-xr-x 4 oracle oinstall 4096 Nov 29 22:45 owm
drwxr-xr-x 8 oracle oinstall 4096 Nov 29 22:45 ord
drwxr-xr-x 4 oracle oinstall 4096 Nov 29 22:45 oracore
drwxr-xr-x 5 oracle oinstall 4096 Nov 29 22:45 ons
drwxr-xr-x 5 oracle oinstall 4096 Nov 29 22:45 olap
drwxr-xr-x 6 oracle oinstall 4096 Nov 29 22:45 odbc
drwxr-xr-x 6 oracle oinstall 4096 Nov 29 22:45 nls
drwxr-xr-x 6 oracle oinstall 4096 Nov 29 22:45 md
drwxr-xr-x 4 oracle oinstall 4096 Nov 29 22:45 jdev
drwxr-xr-x 8 oracle oinstall 4096 Nov 29 22:45 javavm
-rw-r--r-- 1 oracle oinstall 37 Nov 29 22:45 install.platform
drwxr-xr-x 8 oracle oinstall 4096 Nov 29 22:45 ide
drwxr-xr-x 3 oracle oinstall 4096 Nov 29 22:45 has
drwxr-xr-x 3 oracle oinstall 4096 Nov 29 22:45 emcli
drwxr-xr-x 4 oracle oinstall 4096 Nov 29 22:45 dv
drwxr-xr-x 3 oracle oinstall 4096 Nov 29 22:45 diagnostics
drwxr-xr-x 3 oracle oinstall 4096 Nov 29 22:45 demo
drwxr-xr-x 6 oracle oinstall 4096 Nov 29 22:45 cv
drwxr-xr-x 3 oracle oinstall 4096 Nov 29 22:45 csmig
drwxr-xr-x 6 oracle oinstall 4096 Nov 29 22:45 crs
drwxr-xr-x 8 oracle oinstall 4096 Nov 29 22:45 assistants
drwxr-xr-x 6 oracle oinstall 4096 Nov 29 22:45 plsql
drwxr-xr-x 2 oracle oinstall 4096 Nov 29 22:46 mesg
drwxr-xr-x 2 oracle oinstall 4096 Nov 29 22:46 utl
drwxr-xr-x 7 oracle oinstall 4096 Nov 29 22:46 xdk
drwxr-xr-x 2 oracle oinstall 4096 Nov 29 22:46 instantclient
drwxr-xr-x 20 oracle oinstall 4096 Nov 29 22:46 oc4j
drwxr-xr-x 2 oracle oinstall 4096 Nov 29 22:47 timingframework
drwxr-xr-x 4 oracle oinstall 4096 Nov 29 22:47 clone
drwxr-xr-x 4 oracle oinstall 4096 Nov 29 22:47 j2ee
drwxr-xr-x 8 oracle oinstall 4096 Nov 29 22:48 apex
drwxr-xr-x 13 oracle oinstall 4096 Nov 29 22:48 sqldeveloper
drwxr-xr-x 2 oracle oinstall 4096 Nov 29 22:48 jlib
drwxr-xr-x 2 oracle oinstall 4096 Nov 29 22:48 dc_ocm
drwxr-xr-x 6 oracle oinstall 4096 Nov 29 22:48 jdk
drwxr-xr-x 3 oracle oinstall 4096 Nov 29 22:49 ucp
drwxr-xr-x 4 oracle oinstall 4096 Nov 29 22:49 relnotes
drwxr-xr-x 3 oracle oinstall 4096 Nov 29 22:49 jdbc
drwxr-xr-x 7 oracle oinstall 4096 Nov 29 22:49 oui
drwxr-xr-x 6 oracle oinstall 4096 Nov 29 22:49 OPatch
drwxr-xr-x 7 oracle oinstall 4096 Nov 29 22:49 ccr
drwxr-xr-x 26 oracle oinstall 4096 Nov 29 22:49 owb
drwxr-xr-x 7 oracle oinstall 4096 Nov 29 22:49 opmn
drwxr-xr-x 6 oracle oinstall 4096 Nov 29 22:49 mgw
drwxr-xr-x 10 oracle oinstall 4096 Nov 29 22:49 srvm
drwxr-xr-x 12 oracle oinstall 4096 Nov 29 22:49 ldap
drwxr-xr-x 6 oracle oinstall 4096 Nov 29 22:49 css
drwxr-xr-x 2 oracle oinstall 4096 Nov 29 22:49 config
drwxr-xr-x 3 oracle oinstall 4096 Nov 29 22:49 cdata
drwxr-xr-x 15 oracle oinstall 4096 Nov 29 22:49 sysman
drwxr-xr-x 7 oracle oinstall 4096 Nov 29 22:49 racg
drwxr-xr-x 10 oracle oinstall 4096 Nov 29 22:49 ctx
drwxr-xr-x 7 oracle oinstall 4096 Nov 29 22:50 sqlplus
drwxr-xr-x 4 oracle oinstall 12288 Nov 29 22:51 lib
drwxr-xr-x 5 oracle oinstall 4096 Nov 29 22:51 perl
drwxr-xr-x 11 oracle oinstall 4096 Nov 29 22:51 network
drwxr-xr-x 5 oracle oinstall 4096 Nov 29 22:51 hs
drwxr-xr-x 4 oracle oinstall 4096 Nov 29 22:51 deinstall
-rwxr-x--- 1 oracle oinstall 464 Nov 29 22:51 root.sh
drwxr-xr-x 13 oracle oinstall 4096 Nov 29 22:51 rdbms
drwxrwx--- 13 oracle oinstall 4096 Nov 29 22:52 inventory
drwxr-xr-x 7 oracle oinstall 4096 Nov 29 22:54 install
drwxr-xr-x 2 oracle oinstall 12288 Nov 29 22:54 bin
drwxr-xr-x 4 oracle oinstall 4096 Nov 29 23:17 log
drwxr-xr-x 5 oracle oinstall 4096 May 6 00:51 cfgtoollogs
drwxr-xr-x 2 oracle oinstall 4096 May 8 12:32 dbs
[oracle@prod200 11.2.0]$ cd dbs/
[oracle@prod200 dbs]$ ls -lrt
total 36
-rw-r--r-- 1 oracle oinstall 2851 May 15 2009 init.ora
-rw-rw---- 1 oracle oinstall 1544 Nov 29 23:06 hc_DBUA0.dat
-rw-r----- 1 oracle oinstall 24 Nov 29 23:13 lkPROD
-rw-r----- 1 oracle oinstall 1536 Nov 29 23:14 orapwPROD_bkp
-rw-r----- 1 oracle oinstall 1536 May 7 22:54 orapwPROD
-rw-r----- 1 oracle oinstall 1536 May 7 22:54 orapwPRODSTDBY
-rw-r----- 1 oracle oinstall 3584 May 8 12:30 spfilePROD.ora_bkp
-rw-rw---- 1 oracle oinstall 1544 May 8 12:31 hc_PROD.dat
-rw-r--r-- 1 oracle oinstall 1193 May 8 12:32 initPROD.ora
[oracle@prod200 dbs]$ cd $ORACLE_HOME
[oracle@prod200 11.2.0]$ cd network/admin/
[oracle@prod200 admin]$ sl -lrt
-bash: sl: command not found
[oracle@prod200 admin]$ ls -lrt
total 16
-rw-r--r-- 1 oracle oinstall 187 May 7 2007 shrept.lst
drwxr-xr-x 2 oracle oinstall 4096 Nov 29 22:46 samples
-rw-r--r-- 1 oracle oinstall 315 Nov 29 23:17 listener.ora
-rw-r--r-- 1 oracle oinstall 528 May 8 00:12 tnsnames.ora
[oracle@prod200 admin]$ vi listener.ora
[oracle@prod200 admin]$ vi tnsnames.ora
[oracle@prod200 admin]$ lsnrctl start PROD
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=prod200.labserver.com)
(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias PROD
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 08-MAY-2016 16:06:54
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2.0/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/prod200/prod/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=prod200.labserver.com)(PORT=1521)))
The listener supports no services
The command completed successfully
[oracle@prod200 admin]$ echo $ORACLE_SID
PROD
[oracle@prod200 admin]$ sqlplus / as sysdba
SQL> startup;
ORACLE instance started.
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
RMAN> exit
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
File created.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit
Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@prod200 dbs]$ sqlplus / as sysdba
SQL> startup
ORACLE instance started.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
System altered.
SQL> /
System altered.
SQL> /
System altered.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit
Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@prod200 dbs]$ cd /u01/app/oracle/oradata/PROD/
[oracle@prod200 PROD]$ ls -lrt
total 1661132
-rw-r----- 1 oracle oinstall 30416896 May 8 16:07 temp01.dbf
-rw-r----- 1 oracle oinstall 52429312 May 8 16:16 redo07.log
-rw-r----- 1 oracle oinstall 52429312 May 8 16:16 redo06.log
-rw-r----- 1 oracle oinstall 52429312 May 8 16:16 redo05.log
-rw-r----- 1 oracle oinstall 52429312 May 8 16:16 redo04.log
-rw-r----- 1 oracle oinstall 52429312 May 8 16:19 redo01.log
-rw-r----- 1 oracle oinstall 52429312 May 8 16:19 redo02.log
-rw-r----- 1 oracle oinstall 5251072 May 8 16:19 users01.dbf
-rw-r----- 1 oracle oinstall 78651392 May 8 16:19 undotbs01.dbf
-rw-r----- 1 oracle oinstall 713039872 May 8 16:19 system01.dbf
-rw-r----- 1 oracle oinstall 513810432 May 8 16:19 sysaux01.dbf
-rw-r----- 1 oracle oinstall 52429312 May 8 16:19 redo03.log
-rw-r----- 1 oracle oinstall 9748480 May 8 16:19 control02.ctl
-rw-r----- 1 oracle oinstall 9748480 May 8 16:19 control01.ctl
[oracle@prod200 PROD]$ scp *.* 172.168.1.201:/u01/app/oracle/oradata/STANDBY
oracle@172.168.1.201's password:
control01.ctl
100% 9520KB 9.3MB/s 00:00
control02.ctl
100% 9520KB 9.3MB/s 00:01
redo01.log
100% 50MB 50.0MB/s 00:01
redo02.log
100% 50MB 25.0MB/s 00:02
redo03.log
100% 50MB 10.0MB/s 00:05
redo04.log
100% 50MB 12.5MB/s 00:04
redo05.log
100% 50MB 10.0MB/s 00:05
redo06.log
100% 50MB 12.5MB/s 00:04
redo07.log
100% 50MB 12.5MB/s 00:04
sysaux01.dbf
100% 490MB 12.0MB/s 00:41
system01.dbf
100% 680MB 12.4MB/s 00:55
temp01.dbf
100% 29MB 14.5MB/s 00:02
undotbs01.dbf
100% 75MB 12.5MB/s 00:06
users01.dbf
100% 5128KB 5.0MB/s 00:00
[oracle@prod200 PROD]$ cd /u01/arch/
[oracle@prod200 arch]$ scp *.* 172.168.1.201:/u01/arch
oracle@172.168.1.201's password:
scp: /u01/arch: No such file or directory
[oracle@prod200 arch]$ scp *.* 172.168.1.201:/u01/arch
oracle@172.168.1.201's password:
arch_1_10_897088402.arc
100% 474KB 474.0KB/s 00:00
arch_1_11_897088402.arc
100% 3973KB 3.9MB/s 00:00
arch_1_12_897088402.arc
100% 29KB 28.5KB/s 00:00
arch_1_13_897088402.arc
100% 343KB 342.5KB/s 00:00
arch_1_14_897088402.arc
100% 52KB 51.5KB/s 00:00
arch_1_15_897088402.arc
100% 6035KB 5.9MB/s 00:01
arch_1_16_897088402.arc
100% 10KB 10.0KB/s 00:00
arch_1_17_897088402.arc
100% 14MB 14.4MB/s 00:00
arch_1_18_897088402.arc
100% 1536 1.5KB/s 00:00
arch_1_19_897088402.arc
100% 570KB 570.0KB/s 00:00
arch_1_20_897088402.arc
100% 51KB 51.0KB/s 00:00
arch_1_21_897088402.arc
100% 83KB 82.5KB/s 00:00
arch_1_22_897088402.arc
100% 3584 3.5KB/s 00:00
arch_1_23_897088402.arc
100% 2560 2.5KB/s 00:00
arch_1_6_897088402.arc
100% 9685KB 9.5MB/s 00:01
arch_1_7_897088402.arc
100% 1024 1.0KB/s 00:00
arch_1_8_897088402.arc
100% 2560 2.5KB/s 00:00
arch_1_9_897088402.arc
100% 1024 1.0KB/s 00:00
[oracle@prod200 arch]$ rman target sys/oracle@PROD auxiliary sys/oracle@STANDBY
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "identifier": expecting one of: "archivelog,
autobackup, auxiliary, auxname, backup, command, compression, controlfile,
database, dbid, decryption, echo, encryption, high, incarnation, maxcorrupt,
maxseq, newname, nocfau, restore, snapshot, to restore point, until restore point,
until"
RMAN-01008: the bad identifier was: LOG_FILE_NAME_CONVERT
RMAN-01007: at line 1 column 9 file: standard input
RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "for": expecting one of: "advise, allocate, alter,
backup, @, catalog, change, configure, connect, convert, copy, create, crosscheck,
delete, drop, duplicate, exit, flashback, grant, host, import, list, mount, open,
print, quit, recover, register, release, repair, replace, report, reset, restore,
resync, revoke, run, send, set, show, shutdown, spool, sql, startup, switch,
transport, unregister, upgrade, validate, {, "
RMAN-01007: at line 1 column 3 file: standard input
RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "from": expecting one of: "advise, allocate, alter,
backup, @, catalog, change, configure, connect, convert, copy, create, crosscheck,
delete, drop, duplicate, exit, flashback, grant, host, import, list, mount, open,
print, quit, recover, register, release, repair, replace, report, reset, restore,
resync, revoke, run, send, set, show, shutdown, spool, sql, startup, switch,
transport, unregister, upgrade, validate, {, "
RMAN-01007: at line 1 column 3 file: standard input
RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "dorecover": expecting one of: "advise, allocate,
alter, backup, @, catalog, change, configure, connect, convert, copy, create,
crosscheck, delete, drop, duplicate, exit, flashback, grant, host, import, list,
mount, open, print, quit, recover, register, release, repair, replace, report,
reset, restore, resync, revoke, run, send, set, show, shutdown, spool, sql,
startup, switch, transport, unregister, upgrade, validate, {, "
RMAN-01007: at line 1 column 3 file: standard input
RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "spfile": expecting one of: "advise, allocate,
alter, backup, @, catalog, change, configure, connect, convert, copy, create,
crosscheck, delete, drop, duplicate, exit, flashback, grant, host, import, list,
mount, open, print, quit, recover, register, release, repair, replace, report,
reset, restore, resync, revoke, run, send, set, show, shutdown, spool, sql,
startup, switch, transport, unregister, upgrade, validate, {, "
RMAN-01007: at line 1 column 3 file: standard input
RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "db_unique_name": expecting one of: "archivelog,
autobackup, auxiliary, auxname, backup, command, compression, controlfile,
database, dbid, decryption, echo, encryption, high, incarnation, maxcorrupt,
maxseq, newname, nocfau, restore, snapshot, to restore point, until restore point,
until"
RMAN-01007: at line 1 column 9 file: standard input
RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "identifier": expecting one of: "archivelog,
autobackup, auxiliary, auxname, backup, command, compression, controlfile,
database, dbid, decryption, echo, encryption, high, incarnation, maxcorrupt,
maxseq, newname, nocfau, restore, snapshot, to restore point, until restore point,
until"
RMAN-01008: the bad identifier was: LOG_ARCHIVE_DEST_2
RMAN-01007: at line 1 column 9 file: standard input
RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "identifier": expecting one of: "archivelog,
autobackup, auxiliary, auxname, backup, command, compression, controlfile,
database, dbid, decryption, echo, encryption, high, incarnation, maxcorrupt,
maxseq, newname, nocfau, restore, snapshot, to restore point, until restore point,
until"
RMAN-01008: the bad identifier was: FAL_SERVER
RMAN-01007: at line 1 column 9 file: standard input
RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "db_file_name_convert": expecting one of:
"archivelog, autobackup, auxiliary, auxname, backup, command, compression,
controlfile, database, dbid, decryption, echo, encryption, high, incarnation,
maxcorrupt, maxseq, newname, nocfau, restore, snapshot, to restore point, until
restore point, until"
RMAN-01007: at line 1 column 6 file: standard input
RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "identifier": expecting one of: "archivelog,
autobackup, auxiliary, auxname, backup, command, compression, controlfile,
database, dbid, decryption, echo, encryption, high, incarnation, maxcorrupt,
maxseq, newname, nocfau, restore, snapshot, to restore point, until restore point,
until"
RMAN-01008: the bad identifier was: LOG_FILE_NAME_CONVERT
RMAN-01007: at line 1 column 9 file: standard input
RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "for": expecting one of: "advise, allocate, alter,
backup, @, catalog, change, configure, connect, convert, copy, create, crosscheck,
delete, drop, duplicate, exit, flashback, grant, host, import, list, mount, open,
print, quit, recover, register, release, repair, replace, report, reset, restore,
resync, revoke, run, send, set, show, shutdown, spool, sql, startup, switch,
transport, unregister, upgrade, validate, {, "
RMAN-01007: at line 1 column 3 file: standard input
RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "from": expecting one of: "advise, allocate, alter,
backup, @, catalog, change, configure, connect, convert, copy, create, crosscheck,
delete, drop, duplicate, exit, flashback, grant, host, import, list, mount, open,
print, quit, recover, register, release, repair, replace, report, reset, restore,
resync, revoke, run, send, set, show, shutdown, spool, sql, startup, switch,
transport, unregister, upgrade, validate, {, "
RMAN-01007: at line 1 column 3 file: standard input
RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "dorecover": expecting one of: "advise, allocate,
alter, backup, @, catalog, change, configure, connect, convert, copy, create,
crosscheck, delete, drop, duplicate, exit, flashback, grant, host, import, list,
mount, open, print, quit, recover, register, release, repair, replace, report,
reset, restore, resync, revoke, run, send, set, show, shutdown, spool, sql,
startup, switch, transport, unregister, upgrade, validate, {, "
RMAN-01007: at line 1 column 3 file: standard input
RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "spfile": expecting one of: "advise, allocate,
alter, backup, @, catalog, change, configure, connect, convert, copy, create,
crosscheck, delete, drop, duplicate, exit, flashback, grant, host, import, list,
mount, open, print, quit, recover, register, release, repair, replace, report,
reset, restore, resync, revoke, run, send, set, show, shutdown, spool, sql,
startup, switch, transport, unregister, upgrade, validate, {, "
RMAN-01007: at line 1 column 3 file: standard input
RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "db_unique_name": expecting one of: "archivelog,
autobackup, auxiliary, auxname, backup, command, compression, controlfile,
database, dbid, decryption, echo, encryption, high, incarnation, maxcorrupt,
maxseq, newname, nocfau, restore, snapshot, to restore point, until restore point,
until"
RMAN-01007: at line 1 column 9 file: standard input
RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "identifier": expecting one of: "archivelog,
autobackup, auxiliary, auxname, backup, command, compression, controlfile,
database, dbid, decryption, echo, encryption, high, incarnation, maxcorrupt,
maxseq, newname, nocfau, restore, snapshot, to restore point, until restore point,
until"
RMAN-01008: the bad identifier was: LOG_ARCHIVE_DEST_2
RMAN-01007: at line 1 column 9 file: standard input
RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "identifier": expecting one of: "archivelog,
autobackup, auxiliary, auxname, backup, command, compression, controlfile,
database, dbid, decryption, echo, encryption, high, incarnation, maxcorrupt,
maxseq, newname, nocfau, restore, snapshot, to restore point, until restore point,
until"
RMAN-01008: the bad identifier was: FAL_SERVER
RMAN-01007: at line 1 column 9 file: standard input
RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "db_file_name_convert": expecting one of:
"archivelog, autobackup, auxiliary, auxname, backup, command, compression,
controlfile, database, dbid, decryption, echo, encryption, high, incarnation,
maxcorrupt, maxseq, newname, nocfau, restore, snapshot, to restore point, until
restore point, until"
RMAN-01007: at line 1 column 6 file: standard input
RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "identifier": expecting one of: "archivelog,
autobackup, auxiliary, auxname, backup, command, compression, controlfile,
database, dbid, decryption, echo, encryption, high, incarnation, maxcorrupt,
maxseq, newname, nocfau, restore, snapshot, to restore point, until restore point,
until"
RMAN-01008: the bad identifier was: LOG_FILE_NAME_CONVERT
RMAN-01007: at line 1 column 9 file: standard input
RMAN>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "nofilenamecheck": expecting one of: "advise,
allocate, alter, backup, @, catalog, change, configure, connect, convert, copy,
create, crosscheck, delete, drop, duplicate, exit, flashback, grant, host, import,
list, mount, open, print, quit, recover, register, release, repair, replace,
report, reset, restore, resync, revoke, run, send, set, show, shutdown, spool, sql,
startup, switch, transport, unregister, upgrade, validate, {, "
RMAN-01007: at line 1 column 3 file: standard input
RMAN>
RMAN>
sql statement: alter system set FAL_SERVER = ''PROD'' comment= ''Is primary''
scope=spfile
RMAN> exit
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SEQUENCE# APPLIED
---------- ---------
6 NO
7 NO
8 NO
9 NO
10 NO
11 NO
12 NO
13 NO
14 NO
15 NO
16 NO
SEQUENCE# APPLIED
---------- ---------
17 NO
18 NO
19 NO
20 NO
21 NO
22 NO
23 NO
24 NO
25 NO
20 rows selected.
SQL> alter system switch logfile;
System altered.
SQL> /
System altered.
SQL> /
System altered.
SQL> /
System altered.
SQL> /
System altered.
SEQUENCE# APPLIED
---------- ---------
6 NO
7 NO
8 NO
9 NO
10 NO
11 NO
12 NO
13 NO
14 NO
15 NO
16 NO
SEQUENCE# APPLIED
---------- ---------
17 NO
18 NO
19 NO
20 NO
21 NO
22 NO
23 NO
24 NO
25 NO
26 NO
27 NO
SEQUENCE# APPLIED
---------- ---------
28 NO
29 NO
30 NO
25 rows selected.
SQL> alter system switch logfile;
System altered.
System altered.
SQL> /
System altered.
SQL> /
System altered.
SEQUENCE# APPLIED
---------- ---------
6 NO
7 NO
8 NO
9 NO
10 NO
11 NO
12 NO
13 NO
14 NO
15 NO
16 NO
SEQUENCE# APPLIED
---------- ---------
17 NO
18 NO
19 NO
20 NO
21 NO
22 NO
23 NO
24 NO
25 NO
26 NO
27 NO
SEQUENCE# APPLIED
---------- ---------
28 NO
29 NO
30 NO
27 YES
28 YES
29 YES
30 YES
26 YES
31 NO
31 NO
32 NO
SEQUENCE# APPLIED
---------- ---------
32 NO
33 NO
33 NO
34 NO
34 NO
35 NO
35 NO
40 rows selected.
SEQUENCE# APPLIED
---------- ---------
6 NO
7 NO
8 NO
9 NO
10 NO
11 NO
12 NO
13 NO
14 NO
15 NO
16 NO
SEQUENCE# APPLIED
---------- ---------
17 NO
18 NO
19 NO
20 NO
21 NO
22 NO
23 NO
24 NO
25 NO
26 NO
27 NO
SEQUENCE# APPLIED
---------- ---------
28 NO
29 NO
30 NO
27 YES
28 YES
29 YES
30 YES
26 YES
31 NO
31 NO
32 NO
SEQUENCE# APPLIED
---------- ---------
32 NO
33 NO
33 NO
34 NO
34 NO
35 NO
35 NO
40 rows selected.
Session altered.
40 rows selected.
System altered.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
System altered.
System altered.
System altered.
SEQUENCE# APPLIED
---------- ---------
17 NO
18 NO
19 NO
20 NO
21 NO
22 NO
23 NO
24 NO
25 NO
26 NO
27 NO
SEQUENCE# APPLIED
---------- ---------
28 NO
29 NO
30 NO
27 YES
28 YES
29 YES
30 YES
26 YES
31 NO
31 YES
32 YES
SEQUENCE# APPLIED
---------- ---------
32 NO
33 YES
33 NO
34 NO
34 YES
35 YES
35 NO
36 NO
36 YES
37 NO
37 YES
SEQUENCE# APPLIED
---------- ---------
38 NO
38 NO
39 NO
39 NO
40 NO
40 NO
50 rows selected.
System altered.
System altered.
System altered.
System altered.
System altered.
System altered.
SQL>
SQL> alter system switch logfile;
System altered.
System altered.
SQL>
=========================
login as: root
root@172.168.1.201's password:
Last login: Sun May 8 15:47:17 2016
[root@test201 ~]# su - oracle
[oracle@test201 ~]$ ls
listener.ora orapwPRODSTDBY PRODSTDBY.ora
oradiag_oracle PRODSTDBY.ctl tnsnames.ora
[oracle@test201 ~]$ ls -lrt
total 9556
drwxr-x--- 3 oracle oinstall 4096 Nov 29 23:06 oradiag_oracle
-rw-r--r-- 1 oracle oinstall 332 May 7 13:02 tnsnames.ora
-rw-r--r-- 1 oracle oinstall 315 May 7 13:02 listener.ora
-rw-r----- 1 oracle oinstall 1536 May 7 22:59 orapwPRODSTDBY
-rw-r--r-- 1 oracle oinstall 1207 May 7 23:00 PRODSTDBY.ora
-rw-r----- 1 oracle oinstall 9748480 May 7 23:00 PRODSTDBY.ctl
[oracle@test201 ~]$ pwd
/home/oracle
[oracle@test201 ~]$ pwd
/home/oracle
[oracle@test201 ~]$ cd /u01/app/oracle/product/
[oracle@test201 product]$ cd 11.2.0
[oracle@test201 11.2.0]$ l
-bash: l: command not found
[oracle@test201 11.2.0]$ ls
apex cdata crs cv demo has install.platform
javavm jlib md nls olap oracore owb precomp root.sh
scheduler sqlplus ucp xdk
assistants cfgtoollogs csmig dbs diagnostics hs instantclient
jdbc ldap mesg oc4j ons oraInst.loc owm racg root.sh.old
slax srvm uix
bin clone css dc_ocm dv ide inventory
jdev lib mgw ocm.rsp OPatch ord perl rdbms root.sh.old.1
sqldeveloper sysman utl
ccr config ctx deinstall emcli install j2ee
jdk log network odbc opmn oui plsql relnotes
root.sh.ouibak sqlj timingframework wwg
[oracle@test201 11.2.0]$ pwd
/u01/app/oracle/product/11.2.0
[oracle@test201 11.2.0]$ cd dbs/
[oracle@test201 dbs]$ ls -lrt
total 36
-rw-r--r-- 1 oracle oinstall 2851 May 15 2009 init.ora
-rw-r----- 1 oracle oinstall 1544 Nov 29 23:06 hc_DBUA0.dat
-rw-r----- 1 oracle oinstall 24 Nov 29 23:13 lkPROD
-rw-r----- 1 oracle oinstall 1536 Nov 29 23:14 orapwPROD_bkp
-rw-r----- 1 oracle oinstall 2560 May 6 00:53 spfilePROD.ora
-rw-r----- 1 oracle oinstall 1544 May 7 23:39 hc_PROD.dat
-rw-r----- 1 oracle oinstall 1536 May 8 00:15 orapwPRODSTDBY
-rw-r--r-- 1 oracle oinstall 1522 May 8 12:30 PRODSTDBY.ora
-rw-rw---- 1 oracle oinstall 1544 May 8 12:30 hc_PRODSTDBY.dat
[oracle@test201 dbs]$ vi PRODSTDBY.ora
[oracle@test201 dbs]$ ls -ld /u01/app/oracle/oradata/STANDBY/
drwxr-xr-x 2 oracle oinstall 4096 May 8 12:33 /u01/app/oracle/oradata/STANDBY/
[oracle@test201 dbs]$ cd /u01/app/oracle/product/11.2.0
[oracle@test201 11.2.0]$ cd network/admin/
[oracle@test201 admin]$ ls -lrt
total 28
-rw-r--r-- 1 oracle oinstall 187 May 7 2007 shrept.lst
drwxr-xr-x 2 oracle oinstall 4096 Nov 29 22:46 samples
-rw-r--r-- 1 oracle oinstall 529 May 7 13:06 tnsnames.ora
-rw-r--r-- 1 oracle oinstall 529 May 7 13:31 tnsnames1605071PM3119.bak
-rw-r--r-- 1 oracle oinstall 805 May 7 13:31 listener1605071PM3119.bak
-rw-r--r-- 1 oracle oinstall 467 May 7 13:36 1
-rw-r--r-- 1 oracle oinstall 458 May 7 13:52 listener.ora
[oracle@test201 admin]$ vi listener.ora
[oracle@test201 admin]$ vi tnsnames.ora
[oracle@test201 admin]$ lsnrctl start PROD12
-bash: lsnrctl: command not found
[oracle@test201 admin]$ export ORACLE_HOME=/u01/app/oracle/product/11.2.0
[oracle@test201 admin]$ export PATH=$ORACLE_HOME/bin:$PATH
[oracle@test201 admin]$ lsnrctl start PROD12
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=test201.labserver.com)
(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias PROD12
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 08-MAY-2016 16:06:41
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2.0/network/admin/listener.ora
Listener Log File
/u01/app/oracle/product/11.2.0/log/diag/tnslsnr/test201/prod12/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=test201.labserver.com)(PORT=1521)))
Services Summary...
Service "STANDBY" has 1 instance(s).
Instance "STANDBY", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
[oracle@test201 admin]$ echo $ORACLE_HOME
/u01/app/oracle/product/11.2.0
[oracle@test201 admin]$ export ORACLE_SID=STANDBY
[oracle@test201 admin]$ pwd
/u01/app/oracle/product/11.2.0/network/admin
[oracle@test201 admin]$ cd ../..
[oracle@test201 11.2.0]$ ls
apex cdata crs cv demo has install.platform
javavm jlib md nls olap oracore owb precomp root.sh
scheduler sqlplus ucp xdk
assistants cfgtoollogs csmig dbs diagnostics hs instantclient
jdbc ldap mesg oc4j ons oraInst.loc owm racg root.sh.old
slax srvm uix
bin clone css dc_ocm dv ide inventory
jdev lib mgw ocm.rsp OPatch ord perl rdbms root.sh.old.1
sqldeveloper sysman utl
ccr config ctx deinstall emcli install j2ee
jdk log network odbc opmn oui plsql relnotes
root.sh.ouibak sqlj timingframework wwg
[oracle@test201 11.2.0]$ cd dbs/
[oracle@test201 dbs]$ sl -lrt
-bash: sl: command not found
[oracle@test201 dbs]$ ls -lrt
total 36
-rw-r--r-- 1 oracle oinstall 2851 May 15 2009 init.ora
-rw-r----- 1 oracle oinstall 1544 Nov 29 23:06 hc_DBUA0.dat
-rw-r----- 1 oracle oinstall 24 Nov 29 23:13 lkPROD
-rw-r----- 1 oracle oinstall 1536 Nov 29 23:14 orapwPROD_bkp
-rw-r----- 1 oracle oinstall 2560 May 6 00:53 spfilePROD.ora
-rw-r----- 1 oracle oinstall 1544 May 7 23:39 hc_PROD.dat
-rw-r----- 1 oracle oinstall 1536 May 8 00:15 orapwPRODSTDBY
-rw-r--r-- 1 oracle oinstall 1522 May 8 12:30 PRODSTDBY.ora
-rw-rw---- 1 oracle oinstall 1544 May 8 12:30 hc_PRODSTDBY.dat
[oracle@test201 dbs]$ vi PRODSTDBY.ora
[oracle@test201 dbs]$ pwd
/u01/app/oracle/product/11.2.0/dbs
[oracle@test201 dbs]$ sqlplus / as sysdba
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
GROUP# MEMBER
------ ---------------------------------------------
3 /u01/app/oracle/oradata/STANDBY/redo03.log
2 /u01/app/oracle/oradata/STANDBY/redo02.log
1 /u01/app/oracle/oradata/STANDBY/redo01.log
4 /u01/app/oracle/oradata/STANDBY/redo04.log
5 /u01/app/oracle/oradata/STANDBY/redo05.log
6 /u01/app/oracle/oradata/STANDBY/redo06.log
7 /u01/app/oracle/oradata/STANDBY/redo07.log
7 rows selected.
SEQUENCE# APPLIED
---------- ---------
24 YES
25 YES
SQL> /
SEQUENCE# APPLIED
---------- ---------
24 YES
25 YES
SEQUENCE# APPLIED
---------- ---------
24 YES
25 YES
SEQUENCE# APPLIED
---------- ---------
24 YES
25 YES
SEQUENCE# APPLIED
---------- ---------
24 YES
25 YES
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;
Database altered.
SQL> select sequence#, applied from v$archived_log;
SEQUENCE# APPLIED
---------- ---------
24 YES
25 YES
27 YES
28 YES
29 YES
26 YES
30 YES
7 rows selected.
SEQUENCE# APPLIED
---------- ---------
24 YES
25 YES
27 YES
28 YES
29 YES
26 YES
30 YES
35 NO
8 rows selected.
SQL> /
SEQUENCE# APPLIED
---------- ---------
24 YES
25 YES
27 YES
28 YES
29 YES
26 YES
30 YES
35 NO
8 rows selected.
SEQUENCE# APPLIED
---------- ---------
24 YES
25 YES
27 YES
28 YES
29 YES
26 YES
30 YES
35 NO
8 rows selected.
SQL> select sequence#, applied from v$archived_log;
SEQUENCE# APPLIED
---------- ---------
24 YES
25 YES
27 YES
28 YES
29 YES
26 YES
30 YES
35 NO
8 rows selected.
SEQUENCE# APPLIED
---------- ---------
24 YES
25 YES
27 YES
28 YES
29 YES
26 YES
30 YES
35 NO
8 rows selected.
SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION
*
ERROR at line 1:
ORA-01153: an incompatible media recovery is active
SEQUENCE# APPLIED
---------- ---------
24 YES
25 YES
27 YES
28 YES
29 YES
26 YES
30 YES
35 NO
8 rows selected.
Session altered.
9 rows selected.
SEQUENCE# APPLIED
---------- ---------
24 YES
25 YES
27 YES
28 YES
29 YES
26 YES
30 YES
35 NO
36 NO
9 rows selected.
SEQUENCE# APPLIED
---------- ---------
24 YES
25 YES
27 YES
28 YES
29 YES
26 YES
30 YES
35 NO
36 NO
9 rows selected.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Database dismounted.
ORACLE instance shut down.
SQL> startup mount
ORACLE instance started.
Database altered.
SEQUENCE# APPLIED
---------- ---------
24 YES
25 YES
27 YES
28 YES
29 YES
26 YES
30 YES
35 YES
36 YES
37 YES
10 rows selected.
SEQUENCE# APPLIED
---------- ---------
24 YES
25 YES
27 YES
28 YES
29 YES
26 YES
30 YES
35 YES
36 YES
37 YES
38 YES
SEQUENCE# APPLIED
---------- ---------
39 YES
40 YES
13 rows selected.
SEQUENCE# APPLIED
---------- ---------
24 YES
25 YES
27 YES
28 YES
29 YES
26 YES
30 YES
35 YES
36 YES
37 YES
38 YES
SEQUENCE# APPLIED
---------- ---------
39 YES
40 YES
41 YES
42 YES
43 YES
44 YES
45 YES
18 rows selected.
SQL> /
SEQUENCE# APPLIED
---------- ---------
24 YES
25 YES
27 YES
28 YES
29 YES
26 YES
30 YES
35 YES
36 YES
37 YES
38 YES
SEQUENCE# APPLIED
---------- ---------
39 YES
40 YES
41 YES
42 YES
43 YES
44 YES
45 YES
18 rows selected.
SEQUENCE# APPLIED
---------- ---------
24 YES
25 YES
27 YES
28 YES
29 YES
26 YES
30 YES
35 YES
36 YES
37 YES
38 YES
SEQUENCE# APPLIED
---------- ---------
39 YES
40 YES
41 YES
42 YES
43 YES
44 YES
45 YES
18 rows selected.
SEQUENCE# APPLIED
---------- ---------
24 YES
25 YES
27 YES
28 YES
29 YES
26 YES
30 YES
35 YES
36 YES
37 YES
38 YES
SEQUENCE# APPLIED
---------- ---------
39 YES
40 YES
41 YES
42 YES
43 YES
44 YES
45 YES
46 YES
19 rows selected.
SQL> show parameter back
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Database altered.
Database dismounted.
ORACLE instance shut down.
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit
Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@test201 trace]$
==============
Redo shipping client performing standby login
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges
'
OCISessionBegin failed. Error -1
.. Detailed OCI error val is 1031 and errmsg is 'ORA-01031: insufficient privileges