Reg: sysdba not logging, system user and other user connecting - oracle

Sysdba not logging other users are logging below, how to
fix it, able to login to other users successfully, please find below, only with sysdba not working
[oracle#dztupbin]$ ./sqlplus SYSTEM/"oracle"
SQL*Plus: Release 12.2.0.1.0 Production on Thu Apr 28 11:05:09 2022
Copyright (c) 1982, 2016, Oracle. All rights reserved.
Last Successful login time: Thu Apr 28 2022 11:05:00 +01:00
Connected to:
Oracle Database 12c Standard Edition Release 12.2.0.1.0 - 64bit Production
[oracle#dztup bin]$ ./sqlplus SYSTEM/"oracle" as sysdba
SQL*Plus: Release 12.2.0.1.0 Production on Thu Apr 28 11:05:18 2022
Copyright (c) 1982, 2016, Oracle. All rights reserved.
ERROR:
ORA-01017: invalid username/password; logon denied
Enter user-name:
sqlplus / as sysdba also giving same result:-
./sqlplus / as sysdba
ERROR:
ORA-01017: invalid username/password; logon denied
[oracle#dztup bin]$ ./sqlplus / as sysdba
SQL*Plus: Release 12.2.0.1.0 Production on Thu Apr 28 11:05:18 2022
Copyright (c) 1982, 2016, Oracle. All rights reserved.
ERROR:
ORA-01017: invalid username/password; logon denied
Enter user-name:
I connected to sys user now:-
[oracle#dztup bin]$ ./sqlplus system/"oracle"
SQL*Plus: Release 12.2.0.1.0 Production on Thu Apr 28 13:25:51 2022
Copyright (c) 1982, 2016, Oracle. All rights reserved.
Last Successful login time: Thu Apr 28 2022 13:25:15 +01:00
Connected to:
Oracle Database 12c Standard Edition Release 12.2.0.1.0 - 64bit Production
SQL> conn sys as sysdba
Enter password:
Connected.
SQL>
SQL>
SQL>
SQL> show user
USER is "SYS"
granted sysdba privilige to system user now able to connect:
but still sqlplus / as sysdba not working.
[oracle#dztup bin]$ ./sqlplus / as sysdba
SQL*Plus: Release 12.2.0.1.0 Production on Thu Apr 28 11:05:18 2022
Copyright (c) 1982, 2016, Oracle. All rights reserved.
ERROR:
ORA-01017: invalid username/password; logon denied

SYSDBA is a privilege, not a user. The SYSTEM account does not have SYSDBA privileges, by default. The only account with default SYSDBA privileges is SYS, which is usually authenticated locally by the operating system. e.g.:
sqlplus / as sysdba
If you have granted SYSDBA privileges to other users, then those users are authenticated against a separate password file when logging in with the SYSDBA role, and not the normal password hash. The password file is not updated automatically when the users' normal password is changed (as with ALTER USER x IDENTIFIED BY pass). To update the password in the password file you must re-grant SYSDBA privileges to the user; otherwise use the old password.

Related

sqlcl can't perform liquibase update for a simple changelog

I'm really stuck on the simpliest example of liquibase migration taken from Oracle-Base. So I've created two files and put it into folder preset.
Contents of file controller.xml:
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.9.xsd">
<changeSet author="tim" id="01_tab1_seq">
<sqlFile dbms="oracle"
endDelimiter=";"
path="test.sql"
splitStatements="true"
relativeToChangelogFile="true"
stripComments="false"/>
</changeSet>
</databaseChangeLog>
Contents of file test.sql:
create or replace view asdas
as
select 1 val from dual
/
I open Windows Terminal Preview at this folder and try to perform a migration:
PS C:\Users\%USERNAME%\Desktop\preset> sql testuser/testuser#dev-db1
Picked up JAVA_TOOL_OPTIONS: -Duser.language=en
SQLcl: Release 21.1 Production on Tue Jul 20 18:25:55 2021
Copyright (c) 1982, 2021, Oracle. All rights reserved.
Last Successful login time: Tue Jul 20 2021 18:25:57 +03:00
Connected to:
Oracle Database 19c Standard Edition 2 Release 19.0.0.0.0 - Production
Version 19.7.0.0.0
SQL> lb update -changelog controller.xml
Processing has failed for your request.
liquibase.exception.UnexpectedLiquibaseException: java.io.IOException: The file test.sql was not found in
- C:\Oracle\jdbc\lib\ojdbc8.jar
- C:\Oracle\jlib\orai18n-mapping.jar
- C:\Oracle\jlib\orai18n-utility.jar
- C:\Oracle\jlib\orai18n.jar
- C:\Oracle\lib\ojdbc8.jar
- C:\Oracle\modules\oracle.xdk\xmlparserv2.jar
- C:\Oracle\modules\org.glassfish.javax.json.jar
- C:\Oracle\rdbms\jlib\xdb6.jar
- C:\Oracle\sqlcl\lib
- C:\Oracle\sqlcl\lib\ST4.jar
- C:\Oracle\sqlcl\lib\antlr-runtime.jar
- C:\Oracle\sqlcl\lib\commons-codec.jar
- C:\Oracle\sqlcl\lib\commons-logging.jar
- C:\Oracle\sqlcl\lib\dbtools-common.jar
- C:\Oracle\sqlcl\lib\dbtools-data.jar
- C:\Oracle\sqlcl\lib\dbtools-http.jar
- C:\Oracle\sqlcl\lib\dbtools-net.jar
- C:\Oracle\sqlcl\lib\dbtools-sqlcl.jar
- C:\Oracle\sqlcl\lib\ext
- C:\Oracle\sqlcl\lib\ext\dbtools-liquibase.jar
- C:\Oracle\sqlcl\lib\ext\dbtools-modeler-cli-ext.jar
- C:\Oracle\sqlcl\lib\ext\dbtools-modeler-common.jar
- C:\Oracle\sqlcl\lib\ext\liquibase-core.jar
- C:\Oracle\sqlcl\lib\ext\snakeyaml-1.12.jar
- C:\Oracle\sqlcl\lib\guava.jar
- C:\Oracle\sqlcl\lib\httpclient5.jar
- C:\Oracle\sqlcl\lib\httpcore5.jar
- C:\Oracle\sqlcl\lib\httpmime.jar
- C:\Oracle\sqlcl\lib\jackson-annotations.jar
- C:\Oracle\sqlcl\lib\jackson-core.jar
- C:\Oracle\sqlcl\lib\jackson-jr-objects.jar
- C:\Oracle\sqlcl\lib\jackson-jr-stree.jar
- C:\Oracle\sqlcl\lib\jansi.jar
- C:\Oracle\sqlcl\lib\javax.json.jar
- C:\Oracle\sqlcl\lib\jdbcrest.jar
- C:\Oracle\sqlcl\lib\jline.jar
- C:\Oracle\sqlcl\lib\ojdbc8.jar
- C:\Oracle\sqlcl\lib\oraclepki.jar
- C:\Oracle\sqlcl\lib\orai18n-collation.jar
- C:\Oracle\sqlcl\lib\orai18n-mapping.jar
- C:\Oracle\sqlcl\lib\orai18n-servlet.jar
- C:\Oracle\sqlcl\lib\orai18n-utility.jar
- C:\Oracle\sqlcl\lib\orai18n.jar
- C:\Oracle\sqlcl\lib\orajsoda.jar
- C:\Oracle\sqlcl\lib\osdt_cert.jar
- C:\Oracle\sqlcl\lib\osdt_core.jar
- C:\Oracle\sqlcl\lib\slf4j-api.jar
- C:\Oracle\sqlcl\lib\slf4j-jdk14.jar
- C:\Oracle\sqlcl\lib\sshd-common.jar
- C:\Oracle\sqlcl\lib\sshd-contrib.jar
- C:\Oracle\sqlcl\lib\sshd-core.jar
- C:\Oracle\sqlcl\lib\xdb6.jar
- C:\Oracle\sqlcl\lib\xmlparserv2-sans-jaxp-services.jar
- C:\Oracle\sqlcl\lib\xmlparserv2.jar
- C:\Program Files\Java\jre1.8.0_291\lib\ext\access-bridge-64.jar
- C:\Program Files\Java\jre1.8.0_291\lib\ext\cldrdata.jar
- C:\Program Files\Java\jre1.8.0_291\lib\ext\dnsns.jar
- C:\Program Files\Java\jre1.8.0_291\lib\ext\jaccess.jar
- C:\Program Files\Java\jre1.8.0_291\lib\ext\jfxrt.jar
- C:\Program Files\Java\jre1.8.0_291\lib\ext\localedata.jar
- C:\Program Files\Java\jre1.8.0_291\lib\ext\nashorn.jar
- C:\Program Files\Java\jre1.8.0_291\lib\ext\sunec.jar
- C:\Program Files\Java\jre1.8.0_291\lib\ext\sunjce_provider.jar
- C:\Program Files\Java\jre1.8.0_291\lib\ext\sunmscapi.jar
- C:\Program Files\Java\jre1.8.0_291\lib\ext\sunpkcs11.jar
- C:\Program Files\Java\jre1.8.0_291\lib\ext\zipfs.jar
- C:\Users\%USERNAME%\Desktop\preset\ST4-4.3.1.jar
- C:\Users\%USERNAME%\Desktop\preset\antlr-runtime-3.5.2.jar
- C:\Users\%USERNAME%\Desktop\preset\commons-codec-1.15.jar
- C:\Users\%USERNAME%\Desktop\preset\commons-logging-1.2.0.0.1.jar
- C:\Users\%USERNAME%\Desktop\preset\dbtools-common-21.1.1.jar
- C:\Users\%USERNAME%\Desktop\preset\dbtools-data-21.1.1.jar
- C:\Users\%USERNAME%\Desktop\preset\dbtools-http-21.1.1.jar
- C:\Users\%USERNAME%\Desktop\preset\dbtools-net-21.1.1.jar
- C:\Users\%USERNAME%\Desktop\preset\dbtools-sqlcl-21.1.1.jar
- C:\Users\%USERNAME%\Desktop\preset\guava-30.1-jre.jar
- C:\Users\%USERNAME%\Desktop\preset\httpclient5-5.0.3.jar
- C:\Users\%USERNAME%\Desktop\preset\httpcore5-5.0.3.jar
- C:\Users\%USERNAME%\Desktop\preset\jackson-annotations-2.12.1.jar
- C:\Users\%USERNAME%\Desktop\preset\jackson-core-2.12.1.jar
- C:\Users\%USERNAME%\Desktop\preset\jackson-jr-objects-2.12.1.jar
- C:\Users\%USERNAME%\Desktop\preset\jackson-jr-stree-2.12.1.jar
- C:\Users\%USERNAME%\Desktop\preset\jansi-1.18.jar
- C:\Users\%USERNAME%\Desktop\preset\javax.activation-api-1.2.0.jar
- C:\Users\%USERNAME%\Desktop\preset\javax.json-1.1.4.jar
- C:\Users\%USERNAME%\Desktop\preset\jaxb-api-2.4.0-b180830.0359.jar
- C:\Users\%USERNAME%\Desktop\preset\jdbcrest-21.1.1.jar
- C:\Users\%USERNAME%\Desktop\preset\jline-2.14.6.jar
- C:\Users\%USERNAME%\Desktop\preset\low-level-api-13.0.0.jar
- C:\Users\%USERNAME%\Desktop\preset\ojdbc8-21.0.0.jar
- C:\Users\%USERNAME%\Desktop\preset\oraclepki-21.0.0.jar
- C:\Users\%USERNAME%\Desktop\preset\orai18n-21.0.0.jar
- C:\Users\%USERNAME%\Desktop\preset\orai18n-mapping-21.0.0.jar
- C:\Users\%USERNAME%\Desktop\preset\orai18n-utility-21.0.0.jar
- C:\Users\%USERNAME%\Desktop\preset\orajsoda-1.1.6.jar
- C:\Users\%USERNAME%\Desktop\preset\osdt_cert-21.0.0.jar
- C:\Users\%USERNAME%\Desktop\preset\osdt_core-21.0.0.jar
- C:\Users\%USERNAME%\Desktop\preset\slf4j-api-1.7.30.jar
- C:\Users\%USERNAME%\Desktop\preset\slf4j-jdk14-1.7.30.jar
- C:\Users\%USERNAME%\Desktop\preset\sshd-common-2.6.0.jar
- C:\Users\%USERNAME%\Desktop\preset\sshd-contrib-2.6.0.jar
- C:\Users\%USERNAME%\Desktop\preset\sshd-core-2.6.0.jar
- C:\Users\%USERNAME%\Desktop\preset\sshd-scp-2.6.0.jar
- C:\Users\%USERNAME%\Desktop\preset\sshd-sftp-2.6.0.jar
- C:\Users\%USERNAME%\Desktop\preset\ucp-21.0.0.jar
- C:\Users\%USERNAME%\Desktop\preset\xdb6-21.0.0.jar
- C:\Users\%USERNAME%\Desktop\preset\xmlparserv2-sans-jaxp-services-21.0.0.jar
- C:\jdbc\lib\ojdbc8.jar
- C:\jlib\orai18n-mapping.jar
- C:\jlib\orai18n-utility.jar
- C:\jlib\orai18n.jar
- C:\rdbms\jlib\xdb6.jar
Specifying files by absolute path was removed in Liquibase 4.0. Please use a relative path or add '/' to the classpath parameter.
Even though I'm running sqlcl from the same directory I get the error above. One can see that directory C:\Users\%USERNAME%\Desktop\preset\ is not on the list. Instead there is a bunch of jar files that don't persist in this directory.
My OS version is Windows 10. Here's versions of tools I use:
PS C:\Users\%USERNAME%\Desktop\preset> sql testuser/testuser#dev-db1
Picked up JAVA_TOOL_OPTIONS: -Duser.language=en
SQLcl: Release 21.1 Production on Tue Jul 20 18:35:55 2021
Copyright (c) 1982, 2021, Oracle. All rights reserved.
Last Successful login time: Tue Jul 20 2021 18:35:57 +03:00
Connected to:
Oracle Database 19c Standard Edition 2 Release 19.0.0.0.0 - Production
Version 19.7.0.0.0
SQL> lb version
Liquibase version: 4.3.1
Extension Version: 21.1.1.0
Any thoughts will be appreciated.
EDIT:
I've tried to run it using Windows 10 Linux Subsystem and it worked:
roman#UBUNTU-LT:/mnt/c/Users/%USERNAME%/Desktop/preset$ sql testuser/testuser#dev-db1
SQLcl: Release 21.1 Production on Thu Jul 22 16:54:14 2021
Copyright (c) 1982, 2021, Oracle. All rights reserved.
Last Successful login time: Thu Jul 22 2021 16:54:18 +03:00
Connected to:
Oracle Database 19c Standard Edition 2 Release 19.0.0.0.0 - Production
Version 19.7.0.0.0
SQL> lb update -changelog controller.xml
######## ERROR SUMMARY ##################
Errors encountered:0
SQL>
Looks like there's something with running it under Windows environment.

During RMAN backup, shutdown immediate database and facing error ORA-12514: TNS:listener?

I was taking an RMAN backup.
RMAN> SHUTDOWN IMMEDIATE;
After Shutdown Immediate i am not able to startup database.
I have tried
conn sys#databasename as sysdba
RMAN target sys#database
lsnrctl stop start status
But i am getting this error.
C:\Users\Umair>rman target sys#ora_prep
Recovery Manager: Release 12.1.0.2.0 - Production on Mon Jul 13 00:18:00 2020
Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved.
target database Password:
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00554: initialization of internal recovery manager package failed
RMAN-04005: error from target database:
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
Advice, please.Thank you.
Oracle 12.1.0
Windows 10
Static listener registration:
https://docs.oracle.com/en/database/oracle/oracle-database/18/spmss/adding-static-service-to-listener.html
https://support.oracle.com/knowledge/Oracle%20Database%20Products/2312510_1.html

Connect Oracle Server 12c from Windows Client SQLplus 11c

i have an oracle server 12c and would like to connect from an windows machine with sqlplus.
Server-Version is 12.2.0.1
SQLPlus is 11.2.0.1
when i connect to the server like "sqlplus user/pass#ORCL" i got the error
ORA-01017: invalid username/password; logon denied
The credentials are correct. With SQLPlus 12.2 it works fine.
By checking support matrix it should be work also with 11.2.0
So here is my tnsnames.ora from the windowsclient
ORCL =
(DESCRIPTION=
(ADDRESS=
(PROTOCOL=TCP)
(HOST=10.162.6.52)
(PORT=1521)
)
(CONNECT_DATA=
(SERVER = DEDICATED)
(SID=orcltok)
)
)
the PASSWORD_VERSION for the User is for 11g and 12c.
i have checked by from dba_users.
i hope someone have a tip for me.
Best wishes
Oliver
I was very interested in your task, I put an experiment on oracle XE 11g and instant client 11.
1. USER SCOTT password Tiger
2. USER Scott password TigeR
C:\app\oracle\product\11.2.0\client_1>sqlplus.exe system/password#aws
SQL*Plus: Release 11.2.0.1.0 Production on Fri Jan 19 22:05:00 2018
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
SQL> alter user SCOTT identified by Tiger;
SQL> select * from all_users;
USERNAME USER_ID CREATED
------------------------------ ---------- ---------
XS$NULL 2147483638 28-AUG-11
SCOTT 48 19-JAN-18
APEX_040000 47 28-AUG-11
APEX_PUBLIC_USER 45 28-AUG-11
FLOWS_FILES 44 28-AUG-11
HR 43 28-AUG-11
MDSYS 42 28-AUG-11
ANONYMOUS 35 28-AUG-11
XDB 34 28-AUG-11
CTXSYS 32 28-AUG-11
OUTLN 9 28-AUG-11
USERNAME USER_ID CREATED
------------------------------ ---------- ---------
SYSTEM 5 28-AUG-11
SYS 0 28-AUG-11
13 rows selected.
SQL> create user "Scott" identified by TigeR ;
User created.
SQL> grant connect to "Scott";
Grant succeeded.
SQL> select * from all_users;
USERNAME USER_ID CREATED
------------------------------ ---------- ---------
XS$NULL 2147483638 28-AUG-11
Scott 51 19-JAN-18
SCOTT 48 19-JAN-18
APEX_040000 47 28-AUG-11
APEX_PUBLIC_USER 45 28-AUG-11
FLOWS_FILES 44 28-AUG-11
HR 43 28-AUG-11
MDSYS 42 28-AUG-11
ANONYMOUS 35 28-AUG-11
XDB 34 28-AUG-11
CTXSYS 32 28-AUG-11
USERNAME USER_ID CREATED
------------------------------ ---------- ---------
OUTLN 9 28-AUG-11
SYSTEM 5 28-AUG-11
SYS 0 28-AUG-11
14 rows selected.
C:\app\oracle\product\11.2.0\client_1>sqlplus.exe "Scott"/Tiger#aws
SQL*Plus: Release 11.2.0.1.0 Production on Fri Jan 19 22:10:31 2018
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
SQL> show user
USER is "SCOTT"
SQL>
C:\app\oracle\product\11.2.0\client_1>sqlplus.exe "Scott"/TigeR#aws
SQL*Plus: Release 11.2.0.1.0 Production on Fri Jan 19 22:14:41 2018
Copyright (c) 1982, 2010, Oracle. All rights reserved.
ERROR:
ORA-01017: invalid username/password; logon denied
C:\app\oracle\product\11.2.0\client_1>sqlplus.exe /nolog
SQL*Plus: Release 11.2.0.1.0 Production on Fri Jan 19 22:15:22 2018
Copyright (c) 1982, 2010, Oracle. All rights reserved.
SQL> connect Scott/TigeR#aws
ERROR:
ORA-01017: invalid username/password; logon denied
SQL> connect "Scott"/TigeR#aws
Connected.
SQL> show user
USER is "Scott"
SQL>
Example 2. sqlplus 12.2.0 instant client 12.2.0.1
C:\oracle\instantclient_12_2>sqlplus.exe Scott/Tiger#aws
SQL*Plus: Release 12.2.0.1.0 Production on Mon Jan 22 09:42:08 2018
Copyright (c) 1982, 2017, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Release 11.2.0.3.0 - 64bit Production
SQL> show user
USER is "SCOTT"
SQL>
C:\oracle\instantclient_12_2>sqlplus.exe "Scott"/"Tiger"#aws
SQL*Plus: Release 12.2.0.1.0 Production on Mon Jan 22 09:44:46 2018
Copyright (c) 1982, 2017, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Release 11.2.0.3.0 - 64bit Production
SQL> show user
USER is "SCOTT"
SQL> exit
Disconnected from Oracle Database 11g Release 11.2.0.3.0 - 64bit Production
C:\oracle\instantclient_12_2>sqlplus.exe /nolog
SQL*Plus: Release 12.2.0.1.0 Production on Mon Jan 22 09:45:48 2018
Copyright (c) 1982, 2017, Oracle. All rights reserved.
SQL> conn Scott/TigeR#aws
ERROR:
ORA-01017: invalid username/password; logon denied
SQL> conn "Scott"/TigeR#aws
Connected.
SQL> show user
USER is "Scott"
SQL>
If the user name contains letters in different registers, then sqlplus 11 and 12 translates the username to upper case always. If you run it like this
sqlpus "Scott"/TigeR#aws this is equivalent to sqlpus "SCOTT"/TigeR#aws.
If you first run the sqlplus /nolog command
and then connect "Scott"/TigeR#aws. That all connects.

Import terminated unsuccessfully - Oracle

I'm trying to import a dump file using imp command in oracle 10g. The following error message is displayed. Kindly assist
C:\Documents and Settings>imp 'rdata/rdata#nxtgen' file="D:\oracle\schema.dmp"
log=D:\oracle\schema.log full=y
Import: Release 10.2.0.1.0 - Production on Fri Jun 21 11:54:29 2013
Copyright (c) 1982, 2005, Oracle. All rights reserved.
IMP-00058:
IMP-00000: Import terminated unsuccessfully
C:\Documents and Settings>

Restoring RMAN Oracle 10g Backup in Oracle 11g

I have the RMAN full database backup of oracle 10g (10.2.0.3) on Sun Solaris OS which I want to restore on oracle 11g (11.2.0.3) on Linux OS. The backup pieces were transferred to the oracle 11g server manually in binary mode. The Oracle 11g is installed on Linux OS. I have only the RMAN backup and no access to the primary database from where the backup has been taken.
-rwxrwxr-x 1 mepc dba 36356096 Jul 16 14:49 snapcf_MEPC.f
-rwxrwxr-x 1 mepc dba 166028800 Jul 16 15:29 MEPC_full_backup_MEPC_nnnbkn9f_1_1
-rwxrwxr-x 1 mepc dba 169567744 Jul 16 15:29 MEPC_full_backup_MEPC_nmnbkn9f_1_1
-rwxrwxr-x 1 mepc dba 164813824 Jul 16 15:39 MEPC_full_backup_MEPC_nonbkn9f_1_1
-rwxrwxr-x 1 mepc dba 144025600 Jul 16 16:06 MEPC_full_backup_MEPC_nqnbkn9f_1_1
-rwxrwxr-x 1 mepc dba 168576512 Jul 16 16:09 MEPC_full_backup_MEPC_npnbkn9f_1_1
-rwxrwxr-x 1 mepc dba 168649216 Jul 16 17:33 MEPC_full_backup_MEPC_o5nbkpvv_1_1
-rwxrwxr-x 1 mepc dba 162847232 Jul 16 17:34 MEPC_full_backup_MEPC_o6nbkpvv_1_1
-rwxrwxr-x 1 mepc dba 167351808 Jul 16 17:35 MEPC_full_backup_MEPC_o7nbkpvv_1_1
-rwxrwxr-x 1 mepc dba 166838272 Jul 16 17:36 MEPC_full_backup_MEPC_o8nbkpvv_1_1
-rwxrwxr-x 1 mepc dba 166876160 Jul 16 17:37 MEPC_full_backup_MEPC_o9nbkpvv_1_1
-rwxrwxr-x 1 mepc dba 327606272 Jul 16 17:54 MEPC_full_backup_MEPC_o4nbknav_1_1
-rwxrwxr-x 1 mepc dba 549658624 Jul 16 18:26 MEPC_full_backup_MEPC_o2nbknav_1_1
-rwxrwxr-x 1 mepc dba 162984448 Jul 16 18:28 MEPC_full_backup_MEPC_oanbkpvv_1_1
-rwxrwxr-x 1 mepc dba 163567616 Jul 16 18:29 MEPC_full_backup_MEPC_obnbkpvv_1_1
-rwxrwxr-x 1 mepc dba 161380352 Jul 16 18:29 MEPC_full_backup_MEPC_ocnbkpvv_1_1
-rwxrwxr-x 1 mepc dba 1072275456 Jul 18 13:52 MEPC_full_backup_MEPC_o3nbknav_1_1
-rwxrwxr-x 1 mepc dba 1813348352 Jul 18 17:00 MEPC_full_backup_MEPC_o1nbknav_1_1
-rwxrwxr-x 1 mepc dba 36438016 Jul 25 15:45 controlfile_bkup_MEPC_c-1469445140-20120522-09
the backup is taken in the above format. I know the ORACLE_SID and did of the database from which the backup has been taken.
whenever I tried the following command
mepc#tcstctmatson:/mepc_backup/May22fullbkp$ rman target /
Recovery Manager: Release 11.2.0.3.0 - Production on Tue Jul 31 12:14:54 2012
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
connected to target database: MEPC (DBID=1595278680)
RMAN> shutdown;
using target database control file instead of recovery catalog
database closed
database dismounted
Oracle instance shut down
RMAN> startup nomount;
connected to target database (not started)
Oracle instance started
Total System Global Area 1071333376 bytes
Fixed Size 1349732 bytes
Variable Size 620758940 bytes
Database Buffers 444596224 bytes
Redo Buffers 4628480 bytes
RMAN> restore spfile to '$ORACLE_HOME/dbs/initMEPC.ora' from autobackup db_recovery_file_dest='/mepc_backup/May22fullbkp' db_name='MEPC';
the following error was notified
Starting restore at 31-JUL-12
using channel ORA_DISK_1
recovery area destination: /mepc_backup/May22fullbkp
database name (or database unique name) used for search: MEPC
channel ORA_DISK_1: no AUTOBACKUPS found in the recovery area
channel ORA_DISK_1: looking for AUTOBACKUP on day: 20120731
channel ORA_DISK_1: looking for AUTOBACKUP on day: 20120730
channel ORA_DISK_1: looking for AUTOBACKUP on day: 20120729
channel ORA_DISK_1: looking for AUTOBACKUP on day: 20120728
channel ORA_DISK_1: looking for AUTOBACKUP on day: 20120727
channel ORA_DISK_1: looking for AUTOBACKUP on day: 20120726
channel ORA_DISK_1: looking for AUTOBACKUP on day: 20120725
channel ORA_DISK_1: no AUTOBACKUP in 7 days found
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 07/31/2012 12:22:06
RMAN-06172: no AUTOBACKUP found or specified handle is not a valid copy or piece
i tried recovering the rman backup through catalog also and the following error was notified
List of Files Which Where Not Cataloged
=======================================
File Name: /mepc_backup/May22fullbkp/MEPC_full_backup_MEPC_nonbkn9f_1_1
RMAN-07517: Reason: The file header is corrupted
File Name: /mepc_backup/May22fullbkp/MEPC_full_backup_MEPC_obnbkpvv_1_1
RMAN-07517: Reason: The file header is corrupted
File Name: /mepc_backup/May22fullbkp/MEPC_full_backup_MEPC_ocnbkpvv_1_1
RMAN-07517: Reason: The file header is corrupted
File Name: /mepc_backup/May22fullbkp/MEPC_full_backup_MEPC_o7nbkpvv_1_1
RMAN-07517: Reason: The file header is corrupted
File Name: /mepc_backup/May22fullbkp/MEPC_full_backup_MEPC_o9nbkpvv_1_1
RMAN-07517: Reason: The file header is corrupted
File Name: /mepc_backup/May22fullbkp/MEPC_full_backup_MEPC_nmnbkn9f_1_1
RMAN-07517: Reason: The file header is corrupted
File Name: /mepc_backup/May22fullbkp/MEPC_full_backup_MEPC_nnnbkn9f_1_1
RMAN-07517: Reason: The file header is corrupted
File Name: /mepc_backup/May22fullbkp/MEPC_full_backup_MEPC_o3nbknav_1_1
RMAN-07517: Reason: The file header is corrupted
File Name: /mepc_backup/May22fullbkp/MEPC_full_backup_MEPC_o6nbkpvv_1_1
RMAN-07517: Reason: The file header is corrupted
File Name: /mepc_backup/May22fullbkp/controlfile_bkup_MEPC_c-1469445140-20120522-09
RMAN-07517: Reason: The file header is corrupted
File Name: /mepc_backup/May22fullbkp/MEPC_full_backup_MEPC_npnbkn9f_1_1
RMAN-07517: Reason: The file header is corrupted
File Name: /mepc_backup/May22fullbkp/MEPC_full_backup_MEPC_oanbkpvv_1_1
RMAN-07517: Reason: The file header is corrupted
File Name: /mepc_backup/May22fullbkp/MEPC_full_backup_MEPC_nqnbkn9f_1_1
RMAN-07517: Reason: The file header is corrupted
File Name: /mepc_backup/May22fullbkp/MEPC_full_backup_MEPC_o1nbknav_1_1
RMAN-07517: Reason: The file header is corrupted
File Name: /mepc_backup/May22fullbkp/MEPC_full_backup_MEPC_o5nbkpvv_1_1
RMAN-07517: Reason: The file header is corrupted
File Name: /mepc_backup/May22fullbkp/snapcf_MEPC.f
RMAN-07517: Reason: The file header is corrupted
File Name: /mepc_backup/May22fullbkp/MEPC_full_backup_MEPC_o2nbknav_1_1
RMAN-07517: Reason: The file header is corrupted
File Name: /mepc_backup/May22fullbkp/MEPC_full_backup_MEPC_o4nbknav_1_1
RMAN-07517: Reason: The file header is corrupted
File Name: /mepc_backup/May22fullbkp/MEPC_full_backup_MEPC_o8nbkpvv_1_1
RMAN-07517: Reason: The file header is corrupted
the file is not corrupted as I checked the checksum on both the servers and it is the same.
Please help me how can I restore the RMAN oracle 10g backup in Oracle 11g and let me know where I am going wrong.
Thanks in advance.
You can not do this.
AFAIK, Solaris - assuming sparc - and Linux - assuming Intel - have different endian formats and this is your problem. You could use the migrate cross platform tablespace scenario.
see Oracle® Database Backup and Recovery Reference
If your endian format does appear to be the same, you should convert the database using rman convert database. In that case you could restore cross platform and cross version.
Not applicable for 10g/11g, but this is different in 12c:
In 12c, rman offers the option following options with the backup command:
FOR TRANSPORT: This options creates a backupset which can be transported to any destination. If the destination database uses a different endian format than the source, the endian format conversion is performed on the destination database.
TO PLATFORM: This option results in the endian format conversion to be performed on the source database and must be used by that supported platform only.
DATAPUMP: This specifies that a data pump export dump file is created while performing a cross-platform backup. The dump file is created in s separate backup set.
Use below command to restore from autobackup, RMAN knows the path and it will restore.
restore controlfile from autobackup;
You need to know first Solaris to Linux are part of same endian or not. I see that Solaris 64 but and Linux 64 bit are same endian.
Even it has same endian you will see this error when " The source Production database, has a 32KB tablespace and an initialisation parameter defined for db_32k_cache_size, but the target pfile didn't have the parameter db_32k_cache_size defined"
Set in the pfile/spfile of the target db_32k_cache_size

Resources