Provide an example of a shell script which logs into SQLPLUS
as SYS, determines the current date, changes the date format
to include minutes & seconds, issues a drop table command,
displays the date again, and finally exits.
Answer / Durg Singh
Here's an example shell script that does what you asked:nn```bashn#!/bin/shnexport ORACLE_SID=your_database_namenecho 'Connecting to database as SYS...' ; sqlplus / as sysdba << EOFndatenALTER SESSION SET NLS_DATE_FORMAT = 'DD-MON-YY HH24:MI:SS';ndrop table your_table_name cascade;ndatenEOFnecho 'Exiting...' ; exit" Replace 'your_database_name' and 'your_table_name' with the actual database name and table name, respectively.
| Is This Answer Correct ? | 0 Yes | 0 No |
what is difference between user managed backup and rman backup?
what is rebuild index??
What is checkpoint?
Give two examples of how you might determine the structure of the table DEPT.
what is ora 24313?what is the procedure to exclude that error?
how can you find out if a table can be redefined?
how can a session indicate its interest in receiving alerts?
1. how do you delete duplicate rows in a table? 2. can you disable and enable primary key? 3. how do you move tables from one tablespace to another tablespace?????
Explain the use of setting GLOBAL_NAMES equal to TRUE.
SUPPOSE AS A DBA YOU CREATED ONE USER BY DEFAULT HOW MANY PRIVILIZES WILL COME TO USER & WHERE CAN YOU SEE THAT PRIVILIZES.
Can you tell me about your experience with the administration of COTS system..? Also, how do you set up seed data..?
Which autogrowth database setting is good? : sql server DBA
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)