Explain CREATE DATABASE syntax?

Answers were Sorted based on User's Feedback



Explain CREATE DATABASE syntax?..

Answer / naresh

CREATE DATABASE DB1
LOGFILE
GROUP 1 '/oracle/oradata/db1/redo1a.log' size 5m,
GROUP 2 '/oracle/oradata/db2/redo2a.log' size 5m
TABLESPACE USERS datafile '/oracle/oradata/db1/system.dbf'
size 100m
AUTOEXTEND ON,
DEFAULT TEMPORARY TABLESPACE
tempfile '/oracle/oradata/db1/temp.dbf' size 10m AUTOEXTEND
ON,
TABLESPACE UNDO datafile '/oracle/oradata/db1/undo.dbf'
size 10m
CHARACTER SET US7ASCII
NATIONAL CHARACTER SET US16UTF16;

Is This Answer Correct ?    7 Yes 0 No

Explain CREATE DATABASE syntax?..

Answer / rohit bhosale

Create Database [database_name] On Primary

(

Name='abc', Filename='path_of_mdf_file'

)

log on

(
Name='abc_log', Filename='path_of_ldf_file'

)



Eg:


Create database emp on primary

(
name='emp1', filename='d:\sql\emp.mdf'
)
log on

(
name='emp1_log', filename='d:\sql\emp_log.ldf'
)

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More DB Administration Interview Questions

what is difference between user managed backup and rman backup?

1 Answers   CTS,


You have found corruption in a tablespace that contains static tables that are part of a database that is in NOARCHIVE log mode. How would you restore the tablespace without losing new data in the other tablespaces?

0 Answers  


How can you enable a trace for a session?

1 Answers  


Other than making use of the statspack utility, what would you check when you are monitoring or running a health check on an Oracle 8i or 9i database?

0 Answers  


What is blocking and how would you troubleshoot it?

1 Answers  






In what script is "snap$" created? In what script is the "scott/tiger" schema created?

0 Answers  


What is the difference between Datapump & export/import?

2 Answers  


How would you best determine why your MVIEW couldn't FAST REFRESH?

0 Answers  


What view(s) do you use to associate a user's SQLPLUS session with his o/s process?

0 Answers  


How do you recover a datafile that has not been physically been backed up since its creation and has been deleted. Provide syntax example.

4 Answers  


How many memory layers are in the shared pool?

3 Answers  


why Datapump is faster than traditional export and import

4 Answers   Mphasis,


Categories