DBCA and Creating Database Manually
Hi
After creatinig the database using Create Database command, we need to run the scripts like catproc.sql,etc. It takes a long time.
However when we create the database using DBCA, it is faster and we are not required to run those scripts.
Reasons ?
In DBCA, if you choose to create a db with the template 'General Purpose or Transaction Processing' including data files, you would put a check mark in the Generate Database Creation Scripts section to produce scripts with the same actions as run by DBCA (including the rman clone of the seed database). With these scripts you don't need to run cat* scripts seperately.
Time the <db_name>.bat run against the same run "within" DBCA.
Message was edited by:
orafad
Similar Messages
-
Dear Experts
I want to create database in oracle 10g manually, without using dbca or create database script on sql. I have been searching google, but not getting any related document. Can you please guide me or provide any link where I get steps to create a database by copying files etcuser832095 wrote:
Thanks to all of you for your prompt response. But in all these responses, I have to issue CREATE DATABASE scrip. There is another way in which we do not use CREATE DATABASE statement, and create all files and folders manually. I did this exercise in the past but now lost all the stuff. Anyways, thanks for your replyIf you are asking about creating a database than how it can be possible to do it without issuing Create Database command? How can you create the files and folders manually? May be you should refer to the reply of Pierre where he has mentioned to create a database using a backup.
Aman.... -
Hi,
Is there any difference in creating database through DBCA(GUI/silent mode) and CREATE DATABASE statement.
Thanks,user13310502 wrote:
Hi,
Is there any difference in creating database through DBCA(GUI/silent mode) and CREATE DATABASE statement.
Thanks,No difference between creating database manually and using DBCA.
in manual creation have to create pfile, creating directories for dump files and database files, running scripts create database script, catalog, catproc manually, and creating sample schemas,password file creation, oratab entry, you have to do.
in DBCA every thing is automatic.
one suggestion,
Total Questions: 8 (8 unresolved) why? mark the thread as answered if you satisfied with the replies.
Announcement: Forums Etiquette / Reward Points
Posters, please mind these common-sense rules when participating here:
- When asking a question, provide all the details that someone would need to answer it. Consulting documentation first is highly recommended.
- When answering a question, please be courteous and respectful; there are different levels of experience represented here. A poorly worded question is better ignored than flamed - or better yet, help the poster ask a better question.
- It is considered good etiquette to reward answerers with points (as "helpful" - 5 pts - or "correct" - 10pts).
- See more tips in the FAQ
Thanks for doing your part to make this community as valuable as possible for everyone!
- OTN -
Error while creating database manually
hi guru's i am getting error while creating database manually
my sql is SQL>create database lily
logfile group 1 ('C:\oracle\product\10.2.0\oradata\lily\redo1.log') size 10M,
group 2 ('C:\oracle\product\10.2.0\oradata\lily\redo2.log') size 10M,
group 3 ('C:\oracle\product\10.2.0\oradata\lily\redo3.log') size 10M
character set WE8ISO8859P1
national character set utf8
datafile 'C:\oracle\product\10.2.0\oradata\lily\system.dbf'
size 50M
autoextend on
next 10M maxsize unlimited
extent management local
sysaux datafile 'C:\oracle\product\10.2.0\oradata\lily\sysaux.dbf'
size 10M
autoextend on
next 10M
maxsize unlimited
undo tablespace undo
datafile 'C:\oracle\product\10.2.0\oradata\lily\undo.dbf'
size 10M
default temporary tablespace temp
tempfile 'C:\oracle\product\10.2.0\oradata\lily\temp.dbf'
size 10M;and i am getting following error
create database lily
ERROR at line 1:
ORA-01501: CREATE DATABASE failed
ORA-00200: control file could not be created
ORA-00202: control file: 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\LILY\CONTROL01.CTL'
ORA-27038: created file already exists
OSD-04010: <create> option specified, file already exists
code}
Edited by: CHETAN YADAV on Jul 19, 2011 6:55 PMcreate database lily
logfile group 1 ('C:\oracle\product\10.2.0\oradata\lily\redo1.log') size 10M,
group 2 ('C:\oracle\product\10.2.0\oradata\lily\redo2.log') size 10M,
group 3 ('C:\oracle\product\10.2.0\oradata\lily\redo3.log') size 10M
datafile 'C:\oracle\product\10.2.0\oradata\lily\system.dbf' size 150M
sysaux datafile 'C:\oracle\product\10.2.0\oradata\lily\sysaux.dbf' 150 M
undo tablespace undo datafile 'C:\oracle\product\10.2.0\oradata\lily\undo.dbf' size 10M
default temporary tablespace temp tempfile 'C:\oracle\product\10.2.0\oradata\lily\temp.dbf' size 10M;
remove the SQL> from the a.sql script also change the system datafile size to minimum of 100mb size
ALSO check/change the undotablespace name with your init parameter file it should match as it is in the init parameter file
Edited by: rajeysh on Jul 19, 2011 6:59 PM -
Get ora-00119 erro when using DBCA to create database?
Hi, friends:
when using DBCA to create database, after finishing all steps and let DBCA to create database automatically, bump into an error:
ORA-00119: invalid specification for system parameter LOCAL_LISTENER
ORA-00132:syntax error or unresolved network name 'LISTENER_mysid'
ORA-01078: failure in processing system parameter
this is 10.2.0.3 version oracle, the server is sun10, no other instace created yet.
just Oracle software installed.
Can any friends help?
thanks a lot in advance!See on metalink:
ORA-119, ORA-132 ORA-1078 Received From DBCA After Applying 10.2.0.3 Patchset
Doc ID: Note:433817.1
There's an entry LOCAL_LISTENER created in pfile/spfile, that's a bug.
Werner -
I am not able to create database manually.unexpected error incountered why?
I am not able to create database manually.unexpected error incountered why?
Same step is worked in another system
SQL> startup nomount
ORACLE instance started.
Total System Global Area 97589952 bytes
Fixed Size 453312 bytes
Variable Size 46137344 bytes
Database Buffers 50331648 bytes
Redo Buffers 667648 bytes
SQL> ed
Wrote file afiedt.buf
1 CREATE DATABASE icici
2 LOGFILE GROUP 1 ('F:\oracle\oradata\icici\logfile\redo01.log') SIZE 10M,
3 GROUP 2 ('F:\oracle\oradata\icici\logfile\redo02.log') SIZE 10M,
4 GROUP 3 ('F:\oracle\oradata\icici\logfile\redo03.log') SIZE 10M
5 MAXLOGFILES 5
6 MAXLOGMEMBERS 5
7 MAXLOGHISTORY 1
8 MAXDATAFILES 10
9 MAXINSTANCES 1
10 CHARACTER SET US7ASCII
11 NATIONAL CHARACTER SET AL16UTF16
12 DATAFILE 'F:\oracle\oradata\icici\datafile\system01.dbf' SIZE 100M REUSE
EXTENT MANAGEMENT LOCAL
13 DEFAULT TEMPORARY TABLESPACE tempts1 TEMPFILE 'F:\oracle\oradata\icici\d
atafile\temp01.dbf' SIZE 100M REUSE
14 UNDO TABLESPACE undotbs DATAFILE 'F:\oracle\oradata\icici\datafile\undot
bs01.dbf'SIZE 100M REUSE
15* AUTOEXTEND ON NEXT 5120K MAXSIZE 300M
SQL> /
CREATE DATABASE icici
ERROR at line 1:
ORA-01092: ORACLE instance terminated. Disconnection forced
SQL>Check the alert log. Paste the end of the file over here.
Yoann. -
Steps to Create Database manually.
Dear All,
I need steps to create database manually.
How to create password file & database.
Aqeel NawazHi,
yingkuan, given the offical link for you, which is good in understanding things.
If you want little bit different easy to understand.
Refer : http://www.gotidea.net/Database/10gcreatedb.html
http://dba.fyicenter.com/article/Manually_Creating_an_Oracle_Database_on_Windows.html
- Pavan Kumar N -
Create database manually.unexpected error incountered
I am not able to create database manually.unexpected error incountered why?
Same step is worked in another system
SQL> startup nomount
ORACLE instance started.
Total System Global Area 97589952 bytes
Fixed Size 453312 bytes
Variable Size 46137344 bytes
Database Buffers 50331648 bytes
Redo Buffers 667648 bytes
SQL> create dtabase;
create dtabase
ERROR at line 1:
ORA-00901: invalid CREATE command
SQL> ed
Wrote file afiedt.buf
1 CREATE DATABASE icici
2 LOGFILE GROUP 1 ('F:\oracle\oradata\icici\logfile\redo01.log') SIZE 10M,
3 GROUP 2 ('F:\oracle\oradata\icici\logfile\redo02.log') SIZE 10M,
4 GROUP 3 ('F:\oracle\oradata\icici\logfile\redo03.log') SIZE 10M
5 MAXLOGFILES 5
6 MAXLOGMEMBERS 5
7 MAXLOGHISTORY 1
8 MAXDATAFILES 10
9 MAXINSTANCES 1
10 CHARACTER SET US7ASCII
11 NATIONAL CHARACTER SET AL16UTF16
12 DATAFILE 'F:\oracle\oradata\icici\datafile\system01.dbf' SIZE 100M REUSE
EXTENT MANAGEMENT LOCAL
13 DEFAULT TEMPORARY TABLESPACE tempts1 TEMPFILE 'F:\oracle\oradata\icici\d
atafile\temp01.dbf' SIZE 100M REUSE
14 UNDO TABLESPACE undotbs DATAFILE 'F:\oracle\oradata\icici\datafile\undot
bs01.dbf'SIZE 100M REUSE
15* AUTOEXTEND ON NEXT 5120K MAXSIZE 300M
SQL> /
CREATE DATABASE icici
ERROR at line 1:
ORA-01092: ORACLE instance terminated. Disconnection forced
SQL>I'll lay odds that the problem is that you've asked this database to use an UNDO tablespace called UNDOTBS, but that in your spfile (or init.ora) you've specified UNDO_TABLESPACE=UNDOTBS01 (or something similar).
If the parameter file specifies an undo tablespace which doesn't exist, the instance blows up.
The advice to read the alert log would be useful at this point, because the mismatch of undo tablespace names is always recorded properly there (which always makes me annoyed that the original error message can't be a bit more precise!) -
Hello Everyone,
I need to create a database manually. It needs to be a data warehouse database. How can I go about doing that? I tried to create a database thru DBCA but it was giving me an error something about AWR. I don't have the excat error but I can get for you. Please any help is appreciated. I am on AIX 5.3 platform.
ThanksI got this error while creating the database. So
which SYSAUX tablespace am I suppose to extend?If you get this message while creating a database, then the tablespace it refers to would be the one for the database you are creating. Unlike SQLServer, in Oracle the term 'database' is the highest level of organization there is. Except for the possible contention for system level resources, this new database neither knows nor cares a thing about any other databases that may exist anywhere in the universe. In Oracle, every database (and here I use the term 'database' in a broad sense - to include the files and the instance(s)) has its own files, memory, and processes. Multiple databases can communicate with each other, but they don't share anything - not files, not memory, not process, not logical objects within the database.
Just find the place in the CREATE DATABASE script where it defines the SYSAUX tablespace and adjust the size accordingly. -
Problem in creating database manually
Hello ,
I am trying to make database manually and i am successfully created it,but when i am trying to run catalog.sql and catproc.sql my database get dismount automatcally.i also tried to upgrade it via search results on problem but i found this below error when i am typing startup.
help me.
ORA-24324: service handle not initialized
ORA-01041: internal error. hostdef extension doesn't exist970884 wrote:
Hello ,
I am trying to make database manually and i am successfully created it,but when i am trying to run catalog.sql and catproc.sql my database get dismount automatcally.i also tried to upgrade it via search results on problem but i found this below error when i am typing startup.
help me.
ORA-24324: service handle not initialized
ORA-01041: internal error. hostdef extension doesn't existAre you running Windows? Is your db service up and running? Also, before you attempt to start teh db, issue +set oracle_sid=<your_db_name>
Aman.... -
HELP! FOR LOOP TO SCROLL THROUGH TABLE AND CREATE DATABASE LINK
Hi,
Here's the scenario, not much of a PL programmer, just basic SQL so really need some help people!
I have 2 tables. 1 contains list of DB's and the other contains rules to follow.
I need to create a loop that goes through the table containing the DB's and on each row a DB link is created (Only 1 link allowed!)
Once created, the schema currently logged in with also has an account on the linked DB in order to run scripts- The scripts are stored centrally hence the requirement for the link to the target DB.
There are numerous scripts that need to be executed and can all be called from 1 script, once executed the loop exists and the database link needs to be dropped.
Once dropped, the first loop continues, creating a DB link for the next DB listed in the table (and all the scripts are fired again)
This continues against all the DB's listed in the table.Hi BlueShadow,
Thanks again for the response, you've hit the nail on the head. SQL scripts on a unix server, a loop goes through a table 1 at a time. Each row gets a link created and then all the scripts stored on the server are executed against the db linked to. So I'm assuming this is a loop within a loop.
1 loop to go through the table to create the link and then another loop within once connected to execute all the scripts against the connected DB. Once the scripts are run, the loop exits and moves onto the next server and so on until all the servers have the scripts are run.
It's PL/SQL scripts we're after and not shell scripts as this would free us from the OS constraints.
We have to drop the links due to security. Any idea on o -
I am getting this error while creating Database manually.
SQL> @anupam.sql
create database anupam
ERROR at line 1:
ORA-01092: ORACLE instance terminated. Disconnection forced
ORA-01501: CREATE DATABASE failed
ORA-01519: error while processing file '?/rdbms/admin/dtxnspc.bsq' near line 20
ORA-00604: error occurred at recursive SQL level 1
ORA-19502: write error on file "/home/oracle/anupam/users02.dbf", block number
24704 (block size=8192)
ORA-27072: File I/O error
Linux Error: 25: Inappropriate ioctl for device
Additional information: 4
Additional information: 24704
Additional information: 53248
Process ID: 21047
Session ID: 1 Serial number: 3is your directory /home/oracle/anupam/ 100% full can you paste df -kh output
-
Install and Create Database Using ASM Restart
I'm performing a clean install of Oracle grid + database (11gR2) on Oracle Linux R5U6. Both installs seem to go just fine. The ASM processes start and run just fine. But, when I try to create a database, I get the following errors:
PRCR-1079: Failed to start resource ora.test.db
ORA-01031: insufficient privileges
ORA-01031: insufficient privileges
CRS-2674: Start of 'ora.test.db' on 'asm' failed
ORA-01034: ORACLE not available
ORA-01034: ORACLE not available
0
Any ideas?
Thanks
Jim
-----------Create Groups and Users--------------------------------------------------------------------
groupadd oinstall
groupadd dba
groupadd oper
groupadd asmdba
groupadd asmoper
groupadd asmadmin
useradd -g oinstall -G asmdba,asmoper,asmadmin grid
useradd -g oinstall -G dba,oper,asmdba,asmoper,asmadmin oracle
passwd grid
passwd oracle
[root@asm asm]# id oracle
uid=502(oracle) gid=502(oinstall) groups=502(oinstall),503(dba),504(oper),505(asmdba),506(asmoper),507(asmadmin)
[root@asm asm]# id grid
uid=501(grid) gid=502(oinstall) groups=502(oinstall),505(asmdba),506(asmoper),507(asmadmin)
[root@asm asm]# uname -rm
2.6.18-238.el5 i686
[root@asm asm]# uname -a
Linux asm.protoeffect.cxm 2.6.18-238.el5 #1 SMP Tue Jan 4 15:24:05 EST 2011 i686 i686 i386 GNU/Linux
----------------------ASM RPM Installs---------------------------------------------------------
[root@asm asm]# rpm -Uvh oracleasm-support-2.1.7-1.el5.i386.rpm \
oracleasm-2.6.18-238.el5-2.0.5-1.el5.i686.rpm \
oracleasmlib-2.0.4-1.el5.i386.rpm
warning: oracleasm-support-2.1.7-1.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing... ########################################### [100%]
1:oracleasm-support ########################################### [ 33%]
2:oracleasm-2.6.18-238.el########################################### [ 67%]
3:oracleasmlib ########################################### [100%]
-------------------ASM Configure------------------------------------------------------------
[root@asm asm]# /etc/init.d/oracleasm configure
Configuring the Oracle ASM library driver.
This will configure the on-boot properties of the Oracle ASM library
driver. The following questions will determine whether the driver is
loaded on boot and what permissions it will have. The current values
will be shown in brackets ('[]'). Hitting <ENTER> without typing an
answer will keep that current value. Ctrl-C will abort.
Default user to own the driver interface []: grid
Default group to own the driver interface []: asmadmin
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver: [ OK ]
Scanning the system for Oracle ASMLib disks: [ OK ]
-------------------Allocating Disks------------------------------------------------------------
[root@asm asm]# /etc/init.d/oracleasm createdisk DISK1 /dev/sdb1
Marking disk "DISK1" as an ASM disk: [ OK ]
[root@asm asm]# /etc/init.d/oracleasm createdisk DISK2 /dev/sdc1
Marking disk "DISK2" as an ASM disk: [ OK ]
[root@asm asm]# /etc/init.d/oracleasm createdisk DISK3 /dev/sdd1
Marking disk "DISK3" as an ASM disk: [ OK ]
[root@asm asm]# /etc/init.d/oracleasm createdisk DISK4 /dev/sde1
Marking disk "DISK4" as an ASM disk: [ OK ]
[root@asm asm]# /etc/init.d/oracleasm createdisk DISK5 /dev/sdf1
Marking disk "DISK5" as an ASM disk: [ OK ]
[root@asm asm]# /etc/init.d/oracleasm createdisk DISK6 /dev/sdg1
Marking disk "DISK6" as an ASM disk: [ OK ]
[root@asm asm]# /etc/init.d/oracleasm createdisk DISK7 /dev/sdh1
Marking disk "DISK7" as an ASM disk: [ OK ]
[root@asm asm]# /etc/init.d/oracleasm createdisk DISK8 /dev/sdi1
Marking disk "DISK8" as an ASM disk: [ OK ]
[root@asm asm]#
[root@asm asm]#
[root@asm asm]# /etc/init.d/oracleasm listdisks
DISK1
DISK2
DISK3
DISK4
DISK5
DISK6
DISK7
DISK8
---------------------GRID Response File----------------------------------------------------------
oracle.install.responseFileVersion=/oracle/install/rspfmt_crsinstall_response_schema_v11_2_0
ORACLE_HOSTNAME=asm.protoeffect.cxm
INVENTORY_LOCATION=/u01/app/oraInventory
SELECTED_LANGUAGES=en
oracle.install.option=HA_CONFIG
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=/u01/app/oracle/product/11.2.0/grid
oracle.install.asm.OSDBA=asmdba
oracle.install.asm.OSOPER=asmoper
oracle.install.asm.OSASM=asmadmin
oracle.install.crs.config.gpnp.scanName=
oracle.install.crs.config.gpnp.scanPort=0
oracle.install.crs.config.clusterName=
oracle.install.crs.config.gpnp.configureGNS=true
oracle.install.crs.config.gpnp.gnsSubDomain=
oracle.install.crs.config.gpnp.gnsVIPAddress=
oracle.install.crs.config.autoConfigureClusterNodeVIP=false
oracle.install.crs.config.clusterNodes=
oracle.install.crs.config.privateInterconnects=
oracle.install.crs.config.storageOption=
oracle.install.crs.config.sharedFileSystemStorage.diskDriveMapping=
oracle.install.crs.config.sharedFileSystemStorage.votingDiskLocations=
oracle.install.crs.config.sharedFileSystemStorage.votingDiskRedundancy=NORMAL
oracle.install.crs.config.sharedFileSystemStorage.ocrLocations=
oracle.install.crs.config.sharedFileSystemStorage.ocrRedundancy=NORMAL
oracle.install.crs.config.useIPMI=false
oracle.install.crs.config.ipmi.bmcUsername=
oracle.install.crs.config.ipmi.bmcPassword=
oracle.install.asm.SYSASMPassword=
oracle.install.asm.diskGroup.name=DATA
oracle.install.asm.diskGroup.redundancy=NORMAL
oracle.install.asm.diskGroup.disks=ORCL:DISK1,ORCL:DISK2,ORCL:DISK3,ORCL:DISK4
oracle.install.asm.diskGroup.diskDiscoveryString=
oracle.install.asm.monitorPassword=
oracle.install.crs.upgrade.clusterNodes=
oracle.install.asm.upgradeASM=false
[grid@asm ~]$ ps -ef | grep pmon
grid 9950 1 0 09:25 ? 00:00:00 asm_pmon_+ASM
grid 10053 4345 0 09:26 pts/2 00:00:00 grep pmon
------------------------Database Software Install Response File-------------------------------------------------------
oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0
oracle.install.option=INSTALL_DB_SWONLY
ORACLE_HOSTNAME=asm.protoeffect.cxm
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/u01/app/oraInventory
SELECTED_LANGUAGES=en
ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
ORACLE_BASE=/u01/app/oracle
oracle.install.db.InstallEdition=EE
oracle.install.db.isCustomInstall=false
oracle.install.db.customComponents=
oracle.install.db.DBA_GROUP=dba
oracle.install.db.OPER_GROUP=oper
oracle.install.db.CLUSTER_NODES=
oracle.install.db.config.starterdb.type=GENERAL_PURPOSE
oracle.install.db.config.starterdb.globalDBName=
oracle.install.db.config.starterdb.SID=
oracle.install.db.config.starterdb.characterSet=
oracle.install.db.config.starterdb.memoryLimit=
oracle.install.db.config.starterdb.memoryOption=false
oracle.install.db.config.starterdb.installExampleSchemas=false
oracle.install.db.config.starterdb.enableSecuritySettings=true
oracle.install.db.config.starterdb.password.ALL=
oracle.install.db.config.starterdb.password.SYS=
oracle.install.db.config.starterdb.password.SYSTEM=
oracle.install.db.config.starterdb.password.SYSMAN=
oracle.install.db.config.starterdb.password.DBSNMP=
oracle.install.db.config.starterdb.control=DB_CONTROL
oracle.install.db.config.starterdb.gridcontrol.gridControlServiceURL=
oracle.install.db.config.starterdb.dbcontrol.enableEmailNotification=false
oracle.install.db.config.starterdb.dbcontrol.emailAddress=
oracle.install.db.config.starterdb.dbcontrol.SMTPServer=
oracle.install.db.config.starterdb.automatedBackup.enable=false
oracle.install.db.config.starterdb.automatedBackup.osuid=
oracle.install.db.config.starterdb.automatedBackup.ospwd=
oracle.install.db.config.starterdb.storageType=
oracle.install.db.config.starterdb.fileSystemStorage.dataLocation=
oracle.install.db.config.starterdb.fileSystemStorage.recoveryLocation=
oracle.install.db.config.asm.diskGroup=
oracle.install.db.config.asm.ASMSNMPPassword=
MYORACLESUPPORT_USERNAME=J
MYORACLESUPPORT_PASSWORD=
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
DECLINE_SECURITY_UPDATES=false
PROXY_HOST=
PROXY_PORT=
-------------Database Creation Info------------------------------------------------------------------
Name Value
audit_file_dest {ORACLE_BASE}/admin/{DB_UNIQUE_NAME}/adump
audit_trail db
compatible 11.2.0.0.0
db_block_size 8KB
db_create_file_dest +DATA
db_domain
db_name test
diagnostic_dest {ORACLE_BASE}
dispatchers (PROTOCOL=TCP) (SERVICE={SID}XDB)
memory_target 1225MB
open_cursors 300
processes 150
remote_login_passwordfile EXCLUSIVE
undo_tablespace UNDOTBS1This is the problem with you
Now time to solve this problem, to make “user grid in secondary group dba”
http://justinnovation.wordpress.com/category/database/ora/
# usermod -G asmadmin,asmdba,asmoper,dba grid
Now you will notice the Privileges are changed
# id grid
uid=501(grid) gid=1000(oinstall) groups=1000(oinstall),1100(dba),1300(asmadmin),1400(asmdba),1500(asmoper)
now try to runInstaller again!
Good Luck!
帖子经 Haseeb Alam编辑过 -
Please help me on this "creating database manually"
1) copied all datafiles and init.ora file from source and placed in target folder 2)edit the init.ora file, change the db_name and location of the controlfile
3)
C:\>set oracle_sid=jeeno1
C:\>sqlplus /nolog
SQL*Plus: Release 10.1.0.2.0 - Production on Tue Apr
11 06:44:28 2006
Copyright (c) 1982, 2004, Oracle. All rights reserved.
SQL> connect / as sysdba;
Connected to an idle instance.
SQL> startup nomount
pfile='C:\oracle\product\10.1.0\admin\jeeno\pfile\jeenoinit.ora'
ORACLE instance started.
Total System Global Area 171966464 bytes
Fixed Size 787988 bytes
Variable Size 145750508 bytes
Database Buffers 25165824 bytes
Redo Buffers 262144 bytes
SQL> CREATE CONTROLFILE set DATABASE "jeeno1"
RESETLOGS NOARCHIVELOG
2 MAXLOGFILES 16
3 MAXLOGMEMBERS 3
4 MAXDATAFILES 100
5 MAXINSTANCES 8
6 MAXLOGHISTORY 454
7 LOGFILE
8 GROUP 1
'C:\ORACLE\PRODUCT\10.1.0\ORADATA\jeeno\REDO01.LOG'
SIZE 10M,
9 GROUP 2
'C:\ORACLE\PRODUCT\10.1.0\ORADATA\jeeno\REDO02.LOG'
SIZE 10M,
10 GROUP 3
'C:\ORACLE\PRODUCT\10.1.0\ORADATA\jeeno\REDO03.LOG'
SIZE 10M
11 -- STANDBY LOGFILE
12 DATAFILE
13
'C:\ORACLE\PRODUCT\10.1.0\ORADATA\jeeno\SYSTEM01.DBF',
14
'C:\ORACLE\PRODUCT\10.1.0\ORADATA\jeeno\UNDOTBS01.DBF',
15
'C:\ORACLE\PRODUCT\10.1.0\ORADATA\jeeno\SYSAUX01.DBF',
16
'C:\ORACLE\PRODUCT\10.1.0\ORADATA\jeeno\USERS01.DBF'
17 CHARACTER SET WE8MSWIN1252
18 ;
Control file created.
SQL> alter database open resetlogs;
alter database open resetlogs
ERROR at line 1:
ORA-01194: file 1 needs more recovery to be consistent
ORA-01110: data file 1: 'C:\ORACLE\PRODUCT\10.1.0\ORADATA\JEENO\SYSTEM01.DBF'Hi,
From the error message it seems that there is not enough info for recovery. Probably your redo log was overwritten with new information, but currently you need info that was overwritten. If you have not used ARCHIVELOG mode, than overwritten redo info is lost.
Regards,
Andrejus -
Copy linked server database and create database on same server
Hi ALL
I have one linked server i need to copy it whole database in SQL on same server where linked server is created .
Kindly help me .
Thanks
with regards
BI_GroupHi BI_group,
You can try Microsoft SQL Server Migration Assistant for MySQL. For more detail information, please refer to the following link:
Microsoft SQL Server Migration Assistant for MySQL
http://www.microsoft.com/en-us/download/details.aspx?id=28764
Migrating MySQL Databases to SQL Server / SQL Azure
http://msdn.microsoft.com/en-us/library/hh313125.aspx
Converting MySQL Databases (MySQL to SQL)
http://msdn.microsoft.com/en-us/library/hh313137.aspx
Allen Li
TechNet Community Support
Maybe you are looking for
-
Flash Player 10.1 won't replace 10.0
I am unable to upgrade my installation of Adobe Flash Player 10.0.32.18 to the latest version of 10.1. I am running Firefox 3.6.7 on an XP SP3 machine. I am not a system admin (this is just a workstation), but my account does have admin rights. In a
-
About the difference between BRRECOVER and BRRESTORE
Dear experts: anyone who can tell me the difference between the command BRRECOVER and the command BRRESTORE in BRTOOLS? thanks, feng
-
Hello to all, my preview and app are not working/open anymore. can i get an advice how to fix these problems? also, system is asking me everytime to type my pass to acces/enable different apps. thanks and regards, liviu.
-
TS5185 can i turn off imessage from itunes
Can I turn off imessage through itunes
-
Will New apple tv make existing models obsolete??
Or will there be an update to existing models that will allow them to have the same functions as the new apple tv's. I've been reading alot about the speculation of the upcoming itv, but nothing on a software update to existing ones.