Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to startup a DB remotely ?

MaxFeb 26 2016 — edited Mar 7 2016

DB version: 11.2.0.4

OS  : Oracle Linux 6.5

I am trying to remotely connect to a database and start it. But, it is failing with ORA-12514 error as shown below.

--- Currently the password file has only 1 entry which is sys/tiger

$ orapwd file=/u01/product/oracle/11.2.0/dbs/orapwBRCSFPRD1 entries=5 force=y

Enter password for SYS: <Here is entered "tiger" >

--- The following remote login works fine

sqlplus sys/tiger@10.80.16.214:1521/BRCSFPRD as sysdba

SQL> SELECT * FROM V$PWFILE_USERS;

USERNAME                       SYSDB SYSOP SYSAS

------------------------------ ----- ----- -----

SYS                            TRUE  TRUE  FALSE

--- Now, I am creating another with SYSDBA privilege

SQL> create user temp_admin identified by magic;

User created.

SQL> SELECT * FROM V$PWFILE_USERS;

USERNAME                       SYSDB SYSOP SYSAS

------------------------------ ----- ----- -----

SYS                            TRUE  TRUE  FALSE

---- If I understand correctly , the below command will add TEMP_ADMIN user and its password "magic" to the password file

SQL> grant sysdba to temp_admin;

Grant succeeded.

SQL> SELECT * FROM V$PWFILE_USERS;

USERNAME                       SYSDB SYSOP SYSAS

------------------------------ ----- ----- -----

SYS                            TRUE  TRUE  FALSE

TEMP_ADMIN                     TRUE  FALSE FALSE

--- Now I can remotely login (from my personal laptop) as temp_admin user and even shutdown the DB

C:\Users\User>sqlplus temp_admin/magic@10.80.16.214:1521/BRCSFPRD as sysdba

SQL*Plus: Release 11.2.0.4.0 Production on Fri Feb 26 17:33:49 2016

Copyright (c) 1982, 2013, Oracle.  All rights reserved.

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production

With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,

Data Mining and Real Application Testing options

SQL> SHUTDOWN IMMEDIATE;

Database closed.

Database dismounted.

ORACLE instance shut down.

SQL>

SQL> exit

But, I cannot startup the DB remotely. I get ORA-12514 error, understandably because the DB service is not there. How can I get around this situation ?

C:\Users\User>

C:\Users\User>sqlplus temp_admin/magic@10.80.16.214:1521/BRCSFPRD as sysdba

SQL*Plus: Release 11.2.0.4.0 Production on Fri Feb 26 17:37:10 2016

Copyright (c) 1982, 2013, Oracle.  All rights reserved.

ERROR:

ORA-12514: TNS:listener does not currently know of service requested in connect

descriptor

Enter user-name:

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 4 2016
Added on Feb 26 2016
20 comments
3,326 views