You are on page 1of 14

. ./ordb.

env

[oracle@Satish ~]$ vi orcl.env

[oracle@Satish ~]$ . ./orcl.env

[oracle@Satish ~]$ sqlplus

SQL*Plus: Release 12.2.0.1.0 Production on Thu May 16 16:16:42 2019

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

Enter user-name: sys as sysdba

Enter password:

Connected to an idle instance.

SQL> startup

ORACLE instance started.

Total System Global Area 1811939328 bytes

Fixed Size 8793880 bytes

Variable Size 704643304 bytes

Database Buffers 1090519040 bytes

Redo Buffers 7983104 bytes

Database mounted.

Database opened.

SQL> \\l System Global Area 1811939328 bytes

FSP2-0734: unknown command beginning "\\l System..." - rest of line ignored.

SQL>

SP2-0042: unknown command "F" - rest of line ignored.

SQL>

SQL>
SQL>

SQL> exit

Disconnected from Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production

[oracle@Satish ~]$ echo $ORACLE_SID

orcl1

[oracle@Satish ~]$

[oracle@Satish ~]$

[oracle@Satish ~]$ sqlplus sys/Welcome1@ORCLPDB as sysdba

SQL*Plus: Release 12.2.0.1.0 Production on Mon May 20 19:02:27 2019

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

ERROR:

ORA-12541: TNS:no listener

Enter user-name: ^C

[oracle@Satish ~]$ lsnrctl status

LSNRCTL for Linux: Version 12.2.0.1.0 - Production on 20-MAY-2019 19:02:39

Copyright (c) 1991, 2016, Oracle. All rights reserved.

Connecting to
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=satish.suneratech.com)(PORT=1521)))

TNS-12541: TNS:no listener

TNS-12560: TNS:protocol adapter error

TNS-00511: No listener

Linux Error: 111: Connection refused

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
TNS-12541: TNS:no listener

TNS-12560: TNS:protocol adapter error

TNS-00511: No listener

Linux Error: 111: Connection refused

[oracle@Satish ~]$

[oracle@Satish ~]$ lsnrctl start

LSNRCTL for Linux: Version 12.2.0.1.0 - Production on 20-MAY-2019 19:02:45

Copyright (c) 1991, 2016, Oracle. All rights reserved.

Starting /u01/app/oracle/product/12.2.0/dbhome_1/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 12.2.0.1.0 - Production

System parameter file is /u01/app/oracle/product/12.2.0/dbhome_1/network/admin/listener.ora

Log messages written to /u01/app/oracle/diag/tnslsnr/Satish/listener/alert/log.xml

Listening on:
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=satish.suneratech.com)(PORT=1521)))

Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))

Connecting to
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=satish.suneratech.com)(PORT=1521)))

STATUS of the LISTENER

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

Alias LISTENER

Version TNSLSNR for Linux: Version 12.2.0.1.0 - Production

Start Date 20-MAY-2019 19:02:47

Uptime 0 days 0 hr. 0 min. 1 sec

Trace Level off

Security ON: Local OS Authentication

SNMP OFF

Listener Parameter File /u01/app/oracle/product/12.2.0/dbhome_1/network/admin/listener.ora


Listener Log File /u01/app/oracle/diag/tnslsnr/Satish/listener/alert/log.xml

Listening Endpoints Summary...

(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=satish.suneratech.com)(PORT=1521)))

(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))

The listener supports no services

The command completed successfully

[oracle@Satish ~]$

[oracle@Satish ~]$ lsnrctl status

LSNRCTL for Linux: Version 12.2.0.1.0 - Production on 20-MAY-2019 19:02:52

Copyright (c) 1991, 2016, Oracle. All rights reserved.

Connecting to
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=satish.suneratech.com)(PORT=1521)))

STATUS of the LISTENER

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

Alias LISTENER

Version TNSLSNR for Linux: Version 12.2.0.1.0 - Production

Start Date 20-MAY-2019 19:02:47

Uptime 0 days 0 hr. 0 min. 5 sec

Trace Level off

Security ON: Local OS Authentication

SNMP OFF

Listener Parameter File /u01/app/oracle/product/12.2.0/dbhome_1/network/admin/listener.ora

Listener Log File /u01/app/oracle/diag/tnslsnr/Satish/listener/alert/log.xml

Listening Endpoints Summary...

(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=satish.suneratech.com)(PORT=1521)))

(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))

The listener supports no services

The command completed successfully


[oracle@Satish ~]$ lsnrctl status

LSNRCTL for Linux: Version 12.2.0.1.0 - Production on 20-MAY-2019 19:02:54

Copyright (c) 1991, 2016, Oracle. All rights reserved.

Connecting to
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=satish.suneratech.com)(PORT=1521)))

STATUS of the LISTENER

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

Alias LISTENER

Version TNSLSNR for Linux: Version 12.2.0.1.0 - Production

Start Date 20-MAY-2019 19:02:47

Uptime 0 days 0 hr. 0 min. 7 sec

Trace Level off

Security ON: Local OS Authentication

SNMP OFF

Listener Parameter File /u01/app/oracle/product/12.2.0/dbhome_1/network/admin/listener.ora

Listener Log File /u01/app/oracle/diag/tnslsnr/Satish/listener/alert/log.xml

Listening Endpoints Summary...

(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=satish.suneratech.com)(PORT=1521)))

(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))

The listener supports no services

The command completed successfully

[oracle@Satish ~]$ lsnrctl status

LSNRCTL for Linux: Version 12.2.0.1.0 - Production on 20-MAY-2019 19:02:56

Copyright (c) 1991, 2016, Oracle. All rights reserved.

Connecting to
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=satish.suneratech.com)(PORT=1521)))
STATUS of the LISTENER

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

Alias LISTENER

Version TNSLSNR for Linux: Version 12.2.0.1.0 - Production

Start Date 20-MAY-2019 19:02:47

Uptime 0 days 0 hr. 0 min. 8 sec

Trace Level off

Security ON: Local OS Authentication

SNMP OFF

Listener Parameter File /u01/app/oracle/product/12.2.0/dbhome_1/network/admin/listener.ora

Listener Log File /u01/app/oracle/diag/tnslsnr/Satish/listener/alert/log.xml

Listening Endpoints Summary...

(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=satish.suneratech.com)(PORT=1521)))

(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))

The listener supports no services

The command completed successfully

[oracle@Satish ~]$ lsnrctl status

LSNRCTL for Linux: Version 12.2.0.1.0 - Production on 20-MAY-2019 19:02:58

Copyright (c) 1991, 2016, Oracle. All rights reserved.

Connecting to
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=satish.suneratech.com)(PORT=1521)))

STATUS of the LISTENER

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

Alias LISTENER

Version TNSLSNR for Linux: Version 12.2.0.1.0 - Production

Start Date 20-MAY-2019 19:02:47

Uptime 0 days 0 hr. 0 min. 11 sec

Trace Level off


Security ON: Local OS Authentication

SNMP OFF

Listener Parameter File /u01/app/oracle/product/12.2.0/dbhome_1/network/admin/listener.ora

Listener Log File /u01/app/oracle/diag/tnslsnr/Satish/listener/alert/log.xml

Listening Endpoints Summary...

(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=satish.suneratech.com)(PORT=1521)))

(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))

The listener supports no services

The command completed successfully

[oracle@Satish ~]$ lsnrctl status

LSNRCTL for Linux: Version 12.2.0.1.0 - Production on 20-MAY-2019 19:03:01

Copyright (c) 1991, 2016, Oracle. All rights reserved.

Connecting to
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=satish.suneratech.com)(PORT=1521)))

STATUS of the LISTENER

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

Alias LISTENER

Version TNSLSNR for Linux: Version 12.2.0.1.0 - Production

Start Date 20-MAY-2019 19:02:47

Uptime 0 days 0 hr. 0 min. 13 sec

Trace Level off

Security ON: Local OS Authentication

SNMP OFF

Listener Parameter File /u01/app/oracle/product/12.2.0/dbhome_1/network/admin/listener.ora

Listener Log File /u01/app/oracle/diag/tnslsnr/Satish/listener/alert/log.xml

Listening Endpoints Summary...

(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=satish.suneratech.com)(PORT=1521)))

(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
The listener supports no services

The command completed successfully

[oracle@Satish ~]$ sqlplus sys/Welcome1@ORCLPDB as sysdba

SQL*Plus: Release 12.2.0.1.0 Production on Mon May 20 19:03:05 2019

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

ERROR:

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

descriptor

Enter user-name: ^C

[oracle@Satish ~]$ sqlplus / as sysdba

SQL*Plus: Release 12.2.0.1.0 Production on Mon May 20 19:03:12 2019

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

Connected to:

Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production

SQL> select name from v$services;

NAME

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

orcl1XDB

orcl1

SYS$BACKGROUND
SYS$USERS

orclpdb

SQL>

SQL>

SQL> exit

Disconnected from Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production

[oracle@Satish ~]$ sqlplus sys/Welcome1@orclpdb as sysdba

SQL*Plus: Release 12.2.0.1.0 Production on Mon May 20 19:03:38 2019

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

Connected to:

Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production

SQL>

SQL>

SQL> select username from dba_users;

select username from dba_users

ERROR at line 1:

ORA-01219: database or pluggable database not open: queries allowed on fixed

tables or views only

SQL> select username from dba_users;

select username from dba_users

ERROR at line 1:
ORA-01219: database or pluggable database not open: queries allowed on fixed

tables or views only

SQL> show con_name

CON_NAME

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

ORCLPDB

SQL> exit

Disconnected from Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production

[oracle@Satish ~]$ sqlplus / as sysdba

SQL*Plus: Release 12.2.0.1.0 Production on Mon May 20 19:05:13 2019

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

Connected to:

Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production

SQL> alter pluggable database all open;

Pluggable database altered.

SQL>

SQL> select name from v$services;

NAME

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

orcl1XDB
orcl1

SYS$BACKGROUND

SYS$USERS

orclpdb

SQL> show con_name

CON_NAME

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

CDB$ROOT

SQL> alter session set container=orclpdb

2 /

Session altered.

SQL> select username from dba_users;

USERNAME

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

SYS

SYSTEM

XS$NULL

LBACSYS

OUTLN

DBSNMP

APPQOSSYS

DBSFWUSER

GGSYS

ANONYMOUS

HR
USERNAME

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

CTXSYS

SI_INFORMTN_SCHEMA

DVSYS

DVF

GSMADMIN_INTERNAL

ORDPLUGINS

MDSYS

OLAPSYS

ORDDATA

XDB

WMSYS

USERNAME

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

ORDSYS

GSMCATUSER

MDDATA

SYSBACKUP

REMOTE_SCHEDULER_AGENT

PDBADMIN

GSMUSER

SYSRAC

OJVMSYS

AUDSYS

DIP

USERNAME

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

SYSKM
ORACLE_OCM

SYS$UMF

SYSDG

SPATIAL_CSW_ADMIN_USR

DEV12C_SOAINFRA

DEV12C_ESS

DEV12C_UMS

DEV12C_IAU

DEV12C_IAU_VIEWER

DEV12C_IAU_APPEND

USERNAME

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

DEV12C_MDS

DEV12C_WLS_RUNTIME

DEV12C_WLS

DEV12C_STB

DEV12C_OPSS

49 rows selected.

SQL>

SQL>

SQL>

SQL> exit

Disconnected from Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production

[oracle@Satish ~]$ sqlplus sys/Welcome1@orclpdb as sysdba

SQL*Plus: Release 12.2.0.1.0 Production on Mon May 20 19:06:34 2019

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


Connected to:

Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production

SQL> exit

You might also like