Question : Oracle Backup

Hi Experts,

I'm new to Oracle and trying to back up a new development database. I found the following on the Oracle website

Example 9-8 Backing Up a Database in NOARCHIVELOG Mode

SHUTDOWN IMMEDIATE;
# Start up the database in case it suffered instance failure or was
# closed with SHUTDOWN ABORT before starting this script.
STARTUP FORCE DBA;
SHUTDOWN IMMEDIATE;
STARTUP MOUNT;
# this example uses automatic channels to make the backup
BACKUP
  INCREMENTAL LEVEL 0
  MAXSETSIZE 10M
  DATABASE
  TAG 'BACKUP_1';
# Now that the backup is complete, open the database.
ALTER DATABASE OPEN;

Using RMAN I connected to the database OK

Running
SHUTDOWN IMMEDIATE;  works fine

I then try
STARTUP FORCE DBA;  - and an error returns
failure of startup command
TNS:Listener does not currently know of service requested in connect descriptor.

Using the Configuration assistant I can get database started again and can connect again. I have tried the shutdown and STARTUP MOUNT command instead. Same error returns.

What am I doing wrong?

Kelvin

Answer : Oracle Backup

this is complaining about listner. see whether your listner is started and service is registered.
lsnrctl status

you can try using static registration.
Random Solutions  
 
programming4us programming4us