SQL*Plus New Features in Oracle Database 23ai/26ai
This article describes the new features of SQL*Plus in Oracle Database 23ai/26ai.
oracle 23configurationintermediate
by OracleDba
14 views
This article describes the new features of SQL*Plus in Oracle Database 23ai/26ai.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
SQL> select * from banana;
select * from banana
*
ERROR at line 1:
ORA-00942: table or view "TESTUSER1"."BANANA" does not exist
Help: https://docs.oracle.com/error-help/db/ora-00942/
SQL>
SQL> show errordetails
errordetails ON
SQL>
SQL> set errordetails off
SQL> select * from banana;
select * from banana
*
ERROR at line 1:
ORA-00942: table or view "TESTUSER1"."BANANA" does not exist
SQL>
SQL> set errordetails verbose
SQL> select * from banana;
select * from banana
select * from banana
*
ERROR at line 1:
ORA-00942: table or view "TESTUSER1"."BANANA" does not exist
Help: https://docs.oracle.com/error-help/db/ora-00942/
Cause: The specified table or view did not exist, or a synonym
pointed to a table or view that did not exist.
To find existing user tables and views, query the
ALL_TABLES and ALL_VIEWS data dictionary views. Certain
privileges may be required to access the table. If an
application returned this message, then the table that the
application tried to access did not exist in the database, or
the application did not have access to it.
Action: Check each of the following:
- The spelling of the table or view name is correct.
- The referenced table or view name does exist.
- The synonym points to an existing table or view.
If the table or view does exist, ensure that the correct access
privileges are granted to the database user requiring access
to the table. Otherwise, create the table.
Also, if you are attempting to access a table or view in another
schema, make sure that the correct schema is referenced and that
access to the object is granted.
Params: 1) object_name: The table or view name specified as
SCHEMA.OBJECT_NAME, if one is provided.
Otherwise, it is blank.
SQL>
export ORA_SUPPRESS_ERROR_URL=TRUE
SQL> show errordetails
errordetails OFF
SQL>
export ORA_SUPPRESS_ERROR_URL=FALSE
SQL> show errordetails
errordetails ON
SQL>123456789101112131415
SQL> ping
Ok (0.204 msec)
SQL>
SQL> ping free
Network service name mapping file: /opt/oracle/product/23ai/dbhomeFree/network/admin/tnsnames.ora
Attempting to contact: (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = FREE)))
Ok (38.743 msec)
SQL>
SQL> ping listener free
Network service name mapping file: /opt/oracle/product/23ai/dbhomeFree/network/admin/tnsnames.ora
Attempting to contact: (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = FREE)))
Ok (5.992 msec)
SQL>12345678910111213141516171819202122232425262728293031323334353637383940414243
SQL> oerr ORA 48003
Message: "out of process memory"
Help: https://docs.oracle.com/error-help/db/ora-48003/
Document: YES
Cause: Operating system memory was exhausted or a per-process limit
on private memory usage was reached. The database has an internal
limit of 32 GB per Oracle process.
Action: Check the use of memory by other Oracle instances and other
applications. Exceeding 32 GB in a single process may indicate a
memory leak. Consider reducing the size of shared memory to allow
more room for private memory.
Comment: The ORA facility mapping for this error is ORA-04030.
SQL>
SQL> oerr ORA-48003
Message: "out of process memory"
Help: https://docs.oracle.com/error-help/db/ora-48003/
Document: YES
Cause: Operating system memory was exhausted or a per-process limit
on private memory usage was reached. The database has an internal
limit of 32 GB per Oracle process.
Action: Check the use of memory by other Oracle instances and other
applications. Exceeding 32 GB in a single process may indicate a
memory leak. Consider reducing the size of shared memory to allow
more room for private memory.
Comment: The ORA facility mapping for this error is ORA-04030.
SQL>
SQL> oerr 48003
SP2-1666: Unknown component name 48003.
Help: https://docs.oracle.com/error-help/db/sp2-1666/
Cause: The OERR command did not recognize the specified component name.
Action: Verify the correct component name was used. For example, for the
error SP2-750 the component name is SP2. Not all components are
supported by OERR. Refer to the Oracle Database Error message
documentation for information on those messages.
Usage: OERR
SQL>
help 48003
help ora 48003
help ora-480031234567
SQL> select true, false from dual;
TRUE FALSE
----------- -----------
TRUE FALSE
SQL>123456789101112
SHOW CONN[ECTION] NETS[ERVICENAMES] [net_service_name_1 net_service_name_2 .. net_service_name_n]
SQL> show connection netservicenames
Local Net Naming configuration file: /opt/oracle/product/23ai/dbhomeFree/network/admin/tnsnames.ora
FREE
LISTENER_FREE
SQL>
SQL> show connection netservicenames free
Local Net Naming configuration file: /opt/oracle/product/23ai/dbhomeFree/network/admin/tnsnames.ora
free = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = FREE)))
SQL>Please to add comments
No comments yet. Be the first to comment!