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 are the different types of upgrades that can be performed in sql server? : sql server DBA

0 Answers  


how can you get actual data change values from previous transactions in oracle?

0 Answers   Oracle,


Which environment variables are absolutely critical in order to run the OUI?

2 Answers  


what is meant by gateway

1 Answers   IBM,


How can you gather statistics on a table?

3 Answers  


An automatic job running via DBMS_JOB has failed. Knowing only that "it's failed", how do you approach troubleshooting this issue?

1 Answers  


How to craeate the New Database Schema in Oracle and mysql? Please tell me with Example?

0 Answers  


Draft one mock email requesting your non-technical management grant you downtime to (provide justification where applicable) complete the following tasks: (1) Generate statistics on a large table; (2) Generate an RDA – if you don't know what an RDA is please say so. (3) Rename datafiles.

0 Answers  


What questions might be they ask in managerial round in capgemini.

1 Answers   Cap Gemini, iGate,


what is the difference between off-line back up and on-line back up in ibm db2 udb?

2 Answers   Zenith,


If CPU is very slow What can u do to speed up?

1 Answers  


when we login sql editor using username and password then it says this error "could not resolve service name" then what can we do at client side.( here thing is tnsnames.ora file is ok till yesterday and worked well, but now it giving error.

0 Answers  


Categories