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 would you do with an "in-doubt" distributed transaction?

0 Answers  


From the database level, how can you tell under which time zone a database is operating?

1 Answers  


internal architecture

0 Answers   CSC,


Explain the use of table functions.

1 Answers  


what is incremental checkpoint?

1 Answers   CTS,






What are the commands used in dcl? : sql server DBA

0 Answers  


Is it possible to update the multiple field values in a single query? If possible then write the actual query.

1 Answers   Oracle,


Why would you call update statistics? : sql server DBA

0 Answers  


Name a tablespace automatically created when you create a database.

5 Answers  


List out some of the requirements to setup a sql server failover cluster.? : sql server DBA

0 Answers  


How would you force a log switch?

4 Answers  


Oracle 11g new features?

2 Answers  


Categories