ORA-15031 disk specification '/dev/vguat1/rdata2' matches no disks
HI All,
I tried creating a disk group for a ASM instance.
But it is failing with the below error.
SQL> create diskgroup data_grp
2 failgroup data_grp_f1 disk '/dev/vguat1/rdata1'
3 failgroup data_grp_f2 disk '/dev/vguat1/rdata2';
create diskgroup data_grp
ERROR at line 1:
ORA-15018: diskgroup cannot be created
ORA-15031: disk specification '/dev/vguat1/rdata2' matches no disks
ORA-15031: disk specification '/dev/vguat1/rdata1' matches no disks
SQL> sho parameter asm;
NAME TYPE VALUE
asm_diskgroups string DATA_GRP
asm_diskstring string /dev/vguat1/rdata1, /dev/vguat
1/rdata2
asm_power_limit integer 1
Kindly help as it is critical for our testing purpose
OS VERSION: HP-UX ia64
Database: 10gR2
regards
Hi,
It was related to there is data on this disk remaining from previous usage (ASM or not).
please follow this metalink
*Disk Is not Discovered in ASM, Diskgroup Creation Fails with Ora-15018 Ora-15031 Ora-15014 [ID 431013.1]*
Similar Messages
-
ORA-15031: disk specification '/dev/oraclasm/disks/ASMDATA10' matches no disks
Hi Guru's
OS: RHEL5
DB: 11.2.0
Today i am facing a strange proble while creating Diskgroup in ASM. The scenerio is like :
I create disk partitions from 1-7 during installing 11gr2 db with grid and cretate the disk group DATA and FRA using ASMCA. but after completeing all installation db as well as grid later on i add 4 disks and start the server. and add those disk by using oracleasm create disk commad and check the disks are properly listed while checking using oracleasm listdisks
But when i try to create disk group using command prompt:-
SQL> CREATE DISKGROUP DATA1
EXTERNAL REDUNDANCY
DISK '/dev/oracleasm/disks/ASMDATA10';
I am getting error as:-
ORA-15018: diskgroup cannot be created
ORA-15031: disk specifications '/dev/oracleasm/disks/ASMDATA10' matches no disks
ORA-15014: path '/dev/oracleasm/disks/ASMDATA10' is not in the discovery set
But when i try to create the diskgroup using asmca i am able to create the disk group DATA1
why this is happening
any idea about the same
Thanks in advance.SQL> SELECT NAME,PATH,STATE,MOUNT_STATUS,HEADER_STATUS,GROUP_NUMBER FROM V$ASM_DISK;
NAME PATH STATE
MOUNT_S HEADER_STATU GROUP_NUMBER
ORCL:ASMDATA7 NORMAL
CLOSED FORMER 0
ORCL:ASMDATA10 NORMAL
CLOSED PROVISIONED 0
ORCL:ASMDATA8 NORMAL
CLOSED FORMER 0
NAME PATH STATE
MOUNT_S HEADER_STATU GROUP_NUMBER
ORCL:ASMDATA9 NORMAL
CLOSED PROVISIONED 0
ASMDATA1 ORCL:ASMDATA1 NORMAL
CACHED MEMBER 1
ASMDATA2 ORCL:ASMDATA2 NORMAL
CACHED MEMBER 1
NAME PATH STATE
MOUNT_S HEADER_STATU GROUP_NUMBER
ASMDATA3 ORCL:ASMDATA3 NORMAL
CACHED MEMBER 1
ASMDATA4 ORCL:ASMDATA4 NORMAL
CACHED MEMBER 1
ASMDATA5 ORCL:ASMDATA5 NORMAL
CACHED MEMBER 2
NAME PATH STATE
MOUNT_S HEADER_STATU GROUP_NUMBER
ASMDATA6 ORCL:ASMDATA6 NORMAL
CACHED MEMBER 2 -
Create ASM disks on Solarix X64 fails with ORA-15031
I am trying to create a ASM disk group on SOLARIS x64 using a NETAPP LUN. Below are the disks which are configured
SQL> show parameter asm;
NAME TYPE VALUE
asm_diskgroups string DATA
asm_diskstring string /dev/rdsk/c2t9*
asm_power_limit integer 1
asm_preferred_read_failure_groups string
bash-3.00# ls -ltr /dev/rdsk/c2t9d0s7
lrwxrwxrwx 1 root root 80 May 22 16:27 /dev/rdsk/c2t9d0s7 -> ../../devices/iscsi/[email protected]%3Asn.157399130103EC,99:h,raw
bash-3.00# ls -ltr ../../devices/iscsi/[email protected]%3Asn.157399130103EC,99:h,raw
crw-r----- 1 oracle dba 32, 583 May 22 16:56 ../../devices/iscsi/[email protected]%3Asn.157399130103EC,99:h,raw
I get these errors when I try to create a disk group
SQL> create diskgroup DATA external redundancy disk '/dev/rdsk/c2t9d0s7';
create diskgroup DATA external redundancy disk '/dev/rdsk/c2t9d0s7'
ERROR at line 1:
ORA-15018: diskgroup cannot be created
ORA-15031: disk specification '/dev/rdsk/c2t9d0s7' matches no disks
ORA-15025: could not open disk '/dev/rdsk/c2t9d0s7'
ORA-15056: additional error message
Solaris-AMD64 Error: 13: Permission denied
Additional information: 42
Additional information: 198045856
Additional information: 198045848
Please help.My guess is that you did not run fdisk and partition off the first 1M and ASM overwrote the VTOC rendering the device useless.
fdisk
create new partition
primary partition 1
start 2 end <last cylinder>
Then point your disk string to these partitions (<diskname>p1?)
Once this is done, I ALWAYS test to make sure the oracle AND grid user can read and write to this device from ALL nodes. I use the dd command to do this.
DO NOT DO THIS ON AN ALREADY CONFIGURED AND FUNCTIONING ASM DEVICE. Doing so will erase the device.
make a file in $HOME that contains one line:
cat <<EOF >> $HOME/x.x
this is a test
EOF
node1
dd if=$HOME/x.x of=<disk???p1> bs=20 count=1
node2
dd if=<disk???p1> of=$HOME/y.y bs=20 count=1 ##y.y should be the contents of node1:x.x
node1
dd if=/dev/zero of=<disk???p1> bs=8192 count=1000 ## erase the device for ASM usage.
Fix any read/write issues before proceeding. -
ORA-01504: database name 'DEV1' does not match parameter db_name 'PROD1'
Hi, All -
This is my first time cloning a database. The recovery finished but gave me the following error message. All the parameters in the pfile are set to "DEV1". I believe that the parameter db_name 'PROD1' exists in the control file and causing this error. The control file is under ASM.
How can I change the parameter in the control file and bring the 'DEV1' cloned database up? Also, how can I avoid this issue next time I do a clone?
Thanks in advance!
Oracle 10g Release 2 on RHEL5
Database cloning using RMAN Duplicate > ORA-01504: database name 'DEV1' does not match parameter db_name 'PROD1'
ASMCMD> ls
control01.ctl
current.275.729098001
archive log filename=/u001/dbsvr/dev1/1_131706_653848580.dbf recid=59 stamp=741953991
media recovery complete, elapsed time: 00:09:31
*Finished recover at 01-FEB-11*
contents of Memory Script:
shutdown clone;
startup clone nomount ;
executing Memory Script
database dismounted
Oracle instance shut down
connected to auxiliary database (not started)
Oracle instance started
Total System Global Area 725614592 bytes
Fixed Size 2075592 bytes
Variable Size 448791608 bytes
Database Buffers 268435456 bytes
Redo Buffers 6311936 bytes
sql statement: CREATE CONTROLFILE REUSE SET DATABASE "DEV1" RESETLOGS ARCHIVELOG
MAXLOGFILES 50
MAXLOGMEMBERS 5
MAXDATAFILES 100
MAXINSTANCES 1
MAXLOGHISTORY 5445
LOGFILE
GROUP 1 '+DATA3/dev1/datafile/redo01.log' SIZE 100 M ,
GROUP 2 '+DATA3/dev1/datafile/redo02.log' SIZE 100 M ,
GROUP 3 '+DATA3/dev1/datafile/redo03.log' SIZE 100 M
DATAFILE
'+DATA3/dev1/datafile/system01.dbf'
CHARACTER SET WE8ISO8859P1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 02/01/2011 10:30:17
RMAN-06136: ORACLE error from auxiliary database: ORA-01503: CREATE CONTROLFILE failed
ORA-01504: database name 'DEV1' does not match parameter db_name 'PROD1'
RMAN>
RMAN> **end-of-file**
RMAN>Respected, Sybrand Bakker -
Thanks for constructive feedback!
Here are the command that I ran.
RMAN> connect target sys/<password>@PROD1
connected to target database: PROD1 (DBID=556212836)
RMAN> connect auxiliary sys/<password>
connected to auxiliary database: DEV1 (not mounted)
RMAN> @rman_dup.sql
rman_dup.sql contains
run {
allocate auxiliary channel d1 type disk;
set newname for datafile 1 to '+DATA3/dev/datafile/system01.dbf';
set newname for datafile 2 to '+DATA3/dev/datafile/undotbs01.dbf';
set newname for datafile 3 to '+DATA3/dev/datafile/cwmlite01.dbf';
set newname for datafile 4 to '+DATA3/dev/datafile/drsys01.dbf';
set newname for datafile 5 to '+DATA3/dev/datafile/example01.dbf';
set newname for datafile 6 to '+DATA3/dev/datafile/indx01.dbf';
set newname for datafile 7 to '+DATA3/dev/datafile/odm01.dbf';
set newname for datafile 8 to '+DATA3/dev/datafile/tools01.dbf';
set newname for datafile 9 to '+DATA3/dev/datafile/users01.dbf';
set newname for datafile 10 to '+DATA3/dev/datafile/xdb01.dbf';
set newname for datafile 11 to '+DATA3/dev/datafile/cons01.dbf';
set newname for datafile 12 to '+DATA3/dev/datafile/survey01.dbf';
set newname for datafile 13 to '+DATA3/dev/datafile/mem201.dbf';
set newname for datafile 14 to '+DATA3/dev/datafile/cons02.dbf';
set newname for datafile 15 to '+DATA3/dev/datafile/mem202.dbf';
set newname for datafile 16 to '+DATA3/dev/datafile/cater01.dbf';
set newname for datafile 17 to '+DATA3/dev/datafile/users02.dbf';
set newname for datafile 18 to '+DATA3/dev/datafile/mar_data01.dbf';
set newname for datafile 19 to '+DATA3/dev/datafile/sysaux01.dbf';
set newname for datafile 20 to '+DATA3/dev/datafile/streams_tbs_01.dbf';
set newname for datafile 21 to '+DATA3/dev/datafile/users03.dbf';
set newname for tempfile 1 to '+DATA3/dev1/tempfile/temp01.dbf';
duplicate target database to dev1
until scn 48712532746
logfile
'+DATA3/dev1/datafile/redo01.log' size 100M,
'+DATA3/dev1/datafile/redo02.log' size 100M,
'+DATA3/dev1/datafile/redo03.log' size 100M;
}Edited by: CipherDBA on Feb 3, 2011 10:50 AM -
ORA-02253: constraint specification not allowed here
I'm trying to create a table clients with primairy key, but I'm getting the error "ORA-02253: constraint specification not allowed here"
if anyone call what to do
CREATE TABLE CLIENTS
NUMERO NUMBER(6) CONSTRAINT PK_CLIENTS PRIMAIRY KEY,
NOM VARCHAR(63), NOT NULL,
PRENOM VARCHAR(63),
NAISSANCE DATE
Edited by: user10397656 on Oct 13, 2008 1:40 AMThere are some errors in your script :
PK_CLIENTS PRIMAIRY KEY
and
NOM VARCHAR(63)*,* NOT NULL,
Try this way
CREATE TABLE CLIENTS
NUMERO NUMBER(6) CONSTRAINT PK_CLIENTS PRIMARY KEY,
NOM VARCHAR(63) NOT NULL,
PRENOM VARCHAR(63),
NAISSANCE DATE
); -
ORA-02256: number of referencing columns must match referenced columns
Hi,
I have the following script;:
But when I execute the script, TOAD gives me in line "create table recipiente", (I have put in bold the line), the following error: ORA-02256: number of referencing columns must match referenced columns. But I don´t know where is the error.
create table bodega
( nombrebodega varchar2(50) primary key,
localidad varchar2(50),
nombredueño varchar2(50),
telefono varchar2(50),
museo char(1),
logo blob
create table vino
( tipovino varchar2(50),
categoriavino varchar2(50),
anovendimia number(4),
nombrebodega varchar2(50),
denominacionorigen varchar2(50),
precio_lproduc number(5),
litrosproduc number(10),
precio_lpublico number(5),
primary key (tipovino,categoriavino,anovendimia,nombrebodega),
foreign key (nombrebodega) references bodega on delete cascade
create table recipiente <-- Here gives me the error
( idrecipiente number(2) primary key,
capacidad number(10),
clase varchar2(50),
tipovino varchar2(50) not null,
categoriavino varchar2(50) not null,
anovendimia number(4) not null,
nombrebodega varchar2(50) not null,
foreign key (tipovino) references vino on delete cascade,
foreign key (categoriavino) references vino on delete cascade,
foreign key (anovendimia) references vino on delete cascade,
foreign key (nombrebodega) references vino on delete cascade
Anybody could help me?
Thanks. Regardscheck:
SQL> create table bodega
2 ( nombrebodega varchar2(50) primary key,
3 localidad varchar2(50),
4 nombredueo varchar2(50),
5 telefono varchar2(50),
6 museo char(1),
7 logo blob
8 );
Table created.
SQL> create table vino
2 ( tipovino varchar2(50),
3 categoriavino varchar2(50),
4 anovendimia number(4),
5 nombrebodega varchar2(50),
6 denominacionorigen varchar2(50),
7 precio_lproduc number(5),
8 litrosproduc number(10),
9 precio_lpublico number(5),
10 primary key (tipovino,categoriavino,anovendimia,nombrebodega),
11 foreign key (nombrebodega) references bodega on delete cascade
12 );
Table created.
SQL> create table recipiente
2 ( idrecipiente number(2) primary key,
3 capacidad number(10),
4 clase varchar2(50),
5 tipovino varchar2(50) not null,
6 categoriavino varchar2(50) not null,
7 anovendimia number(4) not null,
8 nombrebodega varchar2(50) not null,
9 foreign key (tipovino) references vino(tipovino) on delete cascade,
10 foreign key (categoriavino) references vino(categoriavino) on delete cascad
e,
11 foreign key (anovendimia) references vino(anovendimia) on delete cascade,
12 foreign key (nombrebodega) references vino(nombrebodega) on delete cascade
13 );
foreign key (tipovino) references vino(tipovino) on delete cascade,
ERROR at line 9:
ORA-02270: no matching unique or primary key for this column-list
SQL> alter table vino add constraint vino_uk unique (tipovino);
Table altered.
SQL> alter table vino add constraint categoriavino_uk unique (categoriavino);
Table altered.
SQL> alter table vino add constraint anovendimia_uk unique (anovendimia);
Table altered.
SQL> alter table vino add constraint nombrebodega_uk unique (nombrebodega);
Table altered.
SQL> create table recipiente
2 ( idrecipiente number(2) primary key,
3 capacidad number(10),
4 clase varchar2(50),
5 tipovino varchar2(50) not null,
6 categoriavino varchar2(50) not null,
7 anovendimia number(4) not null,
8 nombrebodega varchar2(50) not null,
9 foreign key (tipovino) references vino(tipovino) on delete cascade,
10 foreign key (categoriavino) references vino(categoriavino) on delete cascad
e,
11 foreign key (anovendimia) references vino(anovendimia) on delete cascade,
12 foreign key (nombrebodega) references vino(nombrebodega) on delete cascade
13 );
Table created.Amiel -
ORA-19007: Schema and element do not match
I've registered a schema with my DB provided in the Oracle 9i XML DataBase Developer's Guide. I've created a table that has one field of type XMLType and is associated with the registered schema. Now I am trying to insert an xml string - also directly from the Oracle's developer's guide site and am getting 'ORA-19007: Schema and element do not match'.
These are the steps I took:
1.begin dbms_xmlschema.registerSchema( 'http://www.oracle.com/po.xsd', getClobDocument ('po.xsd','XSDDIR'), TRUE, TRUE, FALSE, FALSE); end;
2.create table po_tab(id number,po sys.XMLType ) xmltype column po XMLSCHEMA "http://www.oracle.com/po.xsd"element "PurchaseOrder";
3.INSERT INTO PurchaseOrder VALUES (xmltype.createxml('<PurchaseOrder xmlns="http://www.oracle.com/po.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.oracle.com/po.xsd"><PONum>1001</PONum><Company>Oracle Corp</Company><Item><Part>9i Doc Set</Part><Price>2550</Price></Item></PurchaseOrder>'));
this is the po.xsd used:
<schema targetNamespace="http://www.oracle.com/PO.xsd"
xmlns:po="http://www.oracle.com/PO.xsd"
xmlns="http://www.w3.org/2001/XMLSchema">
<complexType name="PurchaseOrderType">
<sequence>
<element name="PONum" type="decimal"/>
<element name="Company">
<simpleType>
<restriction base="string">
<maxLength value="100"/>
</restriction>
</simpleType>
</element>
<element name="Item" maxOccurs="1000">
<complexType>
<sequence>
<element name="Part">
<simpleType>
<restriction base="string">
<maxLength value="1000"/>
</restriction>
</simpleType>
</element>
<element name="Price" type="float"/>
</sequence>
</complexType>
</element>
</sequence>
</complexType>
<element name="PurchaseOrder" type="po:PurchaseOrderType"/>
</schema>
thanks in advanceMinor correction to the previous message, sorry: I've registered a schema with my DB provided in the
Oracle 9i XML DataBase Developer's Guide. I've
created a table that has one field of type XMLType
and is associated with the registered schema. Now I
am trying to insert an xml string - also directly
from the Oracle's developer's guide site and am
getting 'ORA-19007: Schema and element do not
match'.
These are the steps I took:
1.begin dbms_xmlschema.registerSchema(
'http://www.oracle.com/po.xsd', getClobDocument
('po.xsd','XSDDIR'), TRUE, TRUE, FALSE, FALSE); end;
2.create table po_tab(id number,po sys.XMLType )
xmltype column po XMLSCHEMA
"http://www.oracle.com/po.xsd"element
"PurchaseOrder";
3.INSERT INTO PurchaseOrder VALUES
(xmltype.createxml(1,'<PurchaseOrder
xmlns="http://www.oracle.com/po.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.oracle.com/po.xsd"><PON
m>1001</PONum><Company>Oracle
Corp</Company><Item><Part>9i Doc
Set</Part><Price>2550</Price></Item></PurchaseOrder>')
this is the po.xsd used:
<schema
targetNamespace="http://www.oracle.com/PO.xsd"
xmlns:po="http://www.oracle.com/PO.xsd"
xmlns="http://www.w3.org/2001/XMLSchema">
<complexType name="PurchaseOrderType">
<sequence>
<element name="PONum" type="decimal"/>
<element name="Company">
<simpleType>
<restriction base="string">
<maxLength value="100"/>
</restriction>
</simpleType>
</element>
<element name="Item" maxOccurs="1000">
<complexType>
<sequence>
<element name="Part">
<simpleType>
<restriction base="string">
<maxLength value="1000"/>
</restriction>
</simpleType>
</element>
<element name="Price" type="float"/>
</sequence>
</complexType>
</element>
</sequence>
</complexType>
<element name="PurchaseOrder"
type="po:PurchaseOrderType"/>
</schema>
thanks in advance -
Still ORA-19007: Schema and element do not match Error
Hi all,
I'm new to XML and dealing with lots of information but I'm stuck with this error ORA-19007: Schema and element do not match. Read some forums and tried some possibitlities but none has solved this issue. I think this is related with some malformed headers definitions but I'm not sure, so any help will be much appreciated.
Here's what I've done so far:
This is the xml file - emp.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!--Sample XML file generated by XMLSpy v2006 rel. 3 sp2 (http://www.altova.com)-->
<employees xmlns:xdb="http://xmlns.oracle.com/xdb" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/xdb/emp.xsd">
<employee team="Team Test">
<id>1</id>
<name>Nelson Branco</name>
<comment>No Comments</comment>
</employee>
</employees>
...and this is the XSD file: emp.xsd:
<?xml version="1.0" encoding="ISO-8859-15"?>
<!-- edited with XMLSpy v2006 rel. 3 sp2 (http://www.altova.com) by Nelson Branco (Oracle Corp) -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" elementFormDefault="qualified" xdb:storeVarrayAsTable="true">
<xs:element name="comment" type="xs:string"/>
<xs:element name="id" type="xs:string"/>
<xs:element name="name" type="xs:string"/>
<xs:complexType name="employeeType">
<xs:sequence>
<xs:element ref="id"/>
<xs:element ref="name"/>
<xs:element ref="comment" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="team" type="xs:string" use="optional"/>
</xs:complexType>
<xs:element name="employee" type="employeeType"/>
<xs:element name="employees" xdb:defaultTable="EMPLOYEES">
<xs:complexType>
<xs:sequence>
<xs:element ref="employee" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
1) Created folders
declare
ignore boolean;
begin
ignore := dbms_xdb.createFolder('/public/Emp');
ignore := dbms_xdb.createFolder('/public/Emp/xsd');
ignore := dbms_xdb.createFolder('/public/Emp/xml');
commit ;
end;
2) Copied emp.xsd to /public/Emp/xsd in Win Explorer (via WebDAV connection)
3) Registered the schema
begin
dbms_xmlschema.registerURI(schemaURL => 'http://xmlns.oracle.com/xdb/emp.xsd'
,schemaDocURI => '/public/Emp/xsd/emp.xsd'
,genTables => true
commit ;
end ;
4) Copied the xml file to /public/Emp/xml. At this point I was expecting that the xml file was automatically uploaded to corresponding tables based on is content but it didn't happen. I didn't got any error also. When I issue:
Select count(*) from employees
...or
select y."name", y."team" from employees x, table(x.xmldata."employee") y
...got 0 rows returned
5) So then created the table:
create table emp_tab(
id number,
emp sys.XMLType
xmltype column emp
XMLSCHEMA "http://xmlns.oracle.com/xdb/emp.xsd"
element "employee";
6) And tried to insert one record based on the emp.xml:
insert into emp_tab values (1,
xmltype('<?xml version="1.0" encoding="UTF-8"?>
<!--Sample XML file generated by XMLSpy v2006 rel. 3 sp2 (http://www.altova.com)-->
<employees xmlns:xdb="http://xmlns.oracle.com/xdb" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/xdb/emp.xsd">
<employee team="Team Test">
<id>1</id>
<name>Nelson Branco</name>
<comment>No Comments</comment>
</employee>
</employees>'));
...and that when I get ORA-19007: Schema and element do not match.
Any help on this will be appreciated. Thx.SQL> set echo on
SQL> spool testcase.log
SQL> --
SQL> connect sys/ as sysdba
Enter password:
Connected.
SQL> set define on
SQL> --
SQL> define USERNAME = OTNTEST
SQL> --
SQL> def PASSWORD = OTNTEST
SQL> --
SQL> def USER_TABLESPACE = USERS
SQL> --
SQL> def TEMP_TABLESPACE = TEMP
SQL> --
SQL> drop user &USERNAME cascade
2 /
old 1: drop user &USERNAME cascade
new 1: drop user OTNTEST cascade
User dropped.
SQL> grant connect, resource to &USERNAME identified by &PASSWORD
2 /
old 1: grant connect, resource to &USERNAME identified by &PASSWORD
new 1: grant connect, resource to OTNTEST identified by OTNTEST
Grant succeeded.
SQL> grant create any directory, drop any directory to &USERNAME
2 /
old 1: grant create any directory, drop any directory to &USERNAME
new 1: grant create any directory, drop any directory to OTNTEST
Grant succeeded.
SQL> grant alter session, create view to &USERNAME
2 /
old 1: grant alter session, create view to &USERNAME
new 1: grant alter session, create view to OTNTEST
Grant succeeded.
SQL> alter user &USERNAME default tablespace &USER_TABLESPACE temporary tablespace &TEMP_TABLESPACE
2 /
old 1: alter user &USERNAME default tablespace &USER_TABLESPACE temporary tablespace &TEMP_TABLESPACE
new 1: alter user OTNTEST default tablespace USERS temporary tablespace TEMP
User altered.
SQL> connect &USERNAME/&PASSWORD
Connected.
SQL> --
SQL> alter session set events ='19027 trace name context forever, level 0x800'
2 /
Session altered.
SQL> var schemaURL varchar2(256)
SQL> var schemaPath varchar2(256)
SQL> --
SQL> begin
2 :schemaURL := 'http://xmlns.oracle.com/xdb/emp.xsd';
3 :schemaPath := '/public/testcase.xsd';
4 end;
5 /
PL/SQL procedure successfully completed.
SQL> create or replace directory XMLDIR as 'c:\xdb\otn'
2 /
Directory created.
SQL> declare
2 res boolean;
3 xmlSchema xmlType := xmlType(
4 '<?xml version="1.0" encoding="ISO-8859-15"?>
5 <!-- edited with XMLSpy v2006 rel. 3 sp2 (http://www.altova.com) by Nelson Branco (Oracle Corp) -->
6 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" elementFormDefault="qualified" xdb:store
VarrayAsTable="true">
7 <xs:element name="comment" type="xs:string"/>
8 <xs:element name="id" type="xs:string"/>
9 <xs:element name="name" type="xs:string"/>
10 <xs:complexType name="employeeType">
11 <xs:sequence>
12 <xs:element ref="id"/>
13 <xs:element ref="name"/>
14 <xs:element ref="comment" minOccurs="0"/>
15 </xs:sequence>
16 <xs:attribute name="team" type="xs:string" use="optional"/>
17 </xs:complexType>
18 <xs:element name="employee" type="employeeType"/>
19 <xs:element name="employees" xdb:defaultTable="EMPLOYEES">
20 <xs:complexType>
21 <xs:sequence>
22 <xs:element ref="employee" maxOccurs="unbounded"/>
23 </xs:sequence>
24 </xs:complexType>
25 </xs:element>
26 </xs:schema>');
27 begin
28 if (dbms_xdb.existsResource(:schemaPath)) then
29 dbms_xdb.deleteResource(:schemaPath);
30 end if;
31 res := dbms_xdb.createResource(:schemaPath,xmlSchema);
32 end;
33 /
PL/SQL procedure successfully completed.
SQL> begin
2 dbms_xmlschema.registerSchema
3 (
4 :schemaURL,
5 xdbURIType(:schemaPath).getClob(),
6 TRUE,TRUE,FALSE,TRUE
7 );
8 end;
9 /
PL/SQL procedure successfully completed.
SQL> var xmltext varchar2(4000)
SQL> --
SQL> begin
2 :xmltext :=
3 '<?xml version="1.0" encoding="UTF-8"?>
4 <!--Sample XML file generated by XMLSpy v2006 rel. 3 sp2 (http://www.altova.com)-->
5 <employees xmlns:xdb="http://xmlns.oracle.com/xdb" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation=
"http://xmlns.oracle.com/xdb/emp.xsd">
6 <employee team="Team Test">
7 <id>1</id>
8 <name>Nelson Branco</name>
9 <comment>No Comments</comment>
10 </employee>
11 </employees>';
12 end;
13 /
PL/SQL procedure successfully completed.
SQL> insert into EMPLOYEES values ( xmltype(:xmltext));
1 row created.
SQL> /
1 row created.
SQL> create table emp_tab
2 (
3 id number,
4 emp sys.XMLType
5 )
6 xmltype column emp
7 XMLSCHEMA "http://xmlns.oracle.com/xdb/emp.xsd"
8 element "employee"
9 /
Table created.
SQL> insert into EMP_TAB values ( 1, xmltype(:xmltext))
2 /
insert into EMP_TAB values ( 1, xmltype(:xmltext))
ERROR at line 1:
ORA-19040: Element employees does not match expected employee.
SQL> drop table emp_tab
2 /
Table dropped.
SQL> create table emp_tab
2 (
3 id number,
4 emp sys.XMLType
5 )
6 xmltype column emp
7 XMLSCHEMA "http://xmlns.oracle.com/xdb/emp.xsd"
8 element "employees"
9 /
Table created.
SQL> insert into EMP_TAB values ( 1, xmltype(:xmltext))
2 /
1 row created.
SQL> -
ORA-01161: database name DEV in file header does not match given name UAT
This is my cloning process.... I get the following errors.. I also double check with my process and still couldn't find anything.
SQL> @backup_control.sql
ORACLE instance started.
Total System Global Area 479298392 bytes
Fixed Size 742232 bytes
Variable Size 385875968 bytes
Database Buffers 81920000 bytes
Redo Buffers 10760192 bytes
CREATE CONTROLFILE REUSE DATABASE "UAT" NORESETLOGS ARCHIVELOG
ERROR at line 1:
ORA-01503: CREATE CONTROLFILE failed
ORA-01161: database name OBS in file header does not match given name of UAT
ORA-01110: data file 1: '/u01/oracle/uatdata/system01.dbf'
Any ideas of this error?
Best Regards,
AmyPlease see followings:
STARTUP NOMOUNT
CREATE CONTROLFILE SET DATABASE "OBS" RESETLOGS ARCHIVELOG
-- SET STANDBY TO MAXIMIZE PERFORMANCE
MAXLOGFILES 16
MAXLOGMEMBERS 2
MAXDATAFILES 500
MAXINSTANCES 1
MAXLOGHISTORY 2042
LOGFILE
GROUP 1 '/u01/oracle/obsdata/log01a.dbf' SIZE 10M,
GROUP 2 '/u01/oracle/obsdata/log02a.dbf' SIZE 10M,
GROUP 3 '/u01/oracle/obsdata/log03a.dbf' SIZE 10M,
GROUP 4 '/u01/oracle/obsdata/log04a.dbf' SIZE 10M
-- STANDBY LOGFILE
DATAFILE
'/u01/oracle/obsdata/system01.dbf',
'/u01/oracle/obsdata/system02.dbf',
'/u01/oracle/obsdata/system03.dbf',
'/u01/oracle/obsdata/system04.dbf',
'/u01/oracle/obsdata/system05.dbf',
'/u01/oracle/obsdata/rbs01.dbf',
'/u01/oracle/obsdata/ctxd01.dbf',
'/u01/oracle/obsdata/owad01.dbf',
'/u01/oracle/obsdata/abmd01.dbf',
'/u01/oracle/obsdata/abmx01.dbf',
'/u01/oracle/obsdata/akd01.dbf',
'/u01/oracle/obsdata/akx01.dbf',
'/u01/oracle/obsdata/alrd01.dbf',
'/u01/oracle/obsdata/alrx01.dbf',
'/u01/oracle/obsdata/amsd01.dbf',
'/u01/oracle/obsdata/amsx01.dbf',
'/u01/oracle/obsdata/amvd01.dbf',
'/u01/oracle/obsdata/amvx01.dbf',
'/u01/oracle/obsdata/apd01.dbf',
'/u01/oracle/obsdata/apx01.dbf',
'/u01/oracle/obsdata/applsysd01.dbf',
'/u01/oracle/obsdata/applsysx01.dbf',
'/u01/oracle/obsdata/ard01.dbf',
'/u01/oracle/obsdata/arx01.dbf',
'/u01/oracle/obsdata/asfd01.dbf',
'/u01/oracle/obsdata/asfx01.dbf',
'/u01/oracle/obsdata/asgd01.dbf',
'/u01/oracle/obsdata/asgx01.dbf',
'/u01/oracle/obsdata/asod01.dbf',
'/u01/oracle/obsdata/asox01.dbf',
'/u01/oracle/obsdata/astd01.dbf',
'/u01/oracle/obsdata/astx01.dbf',
'/u01/oracle/obsdata/axd01.dbf',
'/u01/oracle/obsdata/axx01.dbf',
'/u01/oracle/obsdata/azd01.dbf',
'/u01/oracle/obsdata/azx01.dbf',
'/u01/oracle/obsdata/bend01.dbf',
'/u01/oracle/obsdata/benx01.dbf',
'/u01/oracle/obsdata/bicd01.dbf',
'/u01/oracle/obsdata/bicx01.dbf',
'/u01/oracle/obsdata/bild01.dbf',
'/u01/oracle/obsdata/bilx01.dbf',
'/u01/oracle/obsdata/bimd01.dbf',
'/u01/oracle/obsdata/bimx01.dbf',
'/u01/oracle/obsdata/bisd01.dbf',
'/u01/oracle/obsdata/bisx01.dbf',
'/u01/oracle/obsdata/bixd01.dbf',
'/u01/oracle/obsdata/bixx01.dbf',
'/u01/oracle/obsdata/bomd01.dbf',
'/u01/oracle/obsdata/bomx01.dbf',
'/u01/oracle/obsdata/bscd01.dbf',
'/u01/oracle/obsdata/bscx01.dbf',
'/u01/oracle/obsdata/cctd01.dbf',
'/u01/oracle/obsdata/cctx01.dbf',
'/u01/oracle/obsdata/ced01.dbf',
'/u01/oracle/obsdata/cex01.dbf',
'/u01/oracle/obsdata/cnd01.dbf',
'/u01/oracle/obsdata/cnx01.dbf',
'/u01/oracle/obsdata/crpd01.dbf',
'/u01/oracle/obsdata/crpx01.dbf',
'/u01/oracle/obsdata/csd01.dbf',
'/u01/oracle/obsdata/csx01.dbf',
'/u01/oracle/obsdata/cscd01.dbf',
'/u01/oracle/obsdata/cscx01.dbf',
'/u01/oracle/obsdata/csdd01.dbf',
'/u01/oracle/obsdata/csdx01.dbf',
'/u01/oracle/obsdata/csfd01.dbf',
'/u01/oracle/obsdata/csfx01.dbf',
'/u01/oracle/obsdata/cspd01.dbf',
'/u01/oracle/obsdata/cspx01.dbf',
'/u01/oracle/obsdata/csrd01.dbf',
'/u01/oracle/obsdata/csrx01.dbf',
'/u01/oracle/obsdata/cssd01.dbf',
'/u01/oracle/obsdata/cssx01.dbf',
'/u01/oracle/obsdata/cuad01.dbf',
'/u01/oracle/obsdata/cuax01.dbf',
'/u01/oracle/obsdata/cufd01.dbf',
'/u01/oracle/obsdata/cufx01.dbf',
'/u01/oracle/obsdata/cuid01.dbf',
'/u01/oracle/obsdata/cuix01.dbf',
'/u01/oracle/obsdata/cund01.dbf',
'/u01/oracle/obsdata/cunx01.dbf',
'/u01/oracle/obsdata/cupd01.dbf',
'/u01/oracle/obsdata/cupx01.dbf',
'/u01/oracle/obsdata/cusd01.dbf',
'/u01/oracle/obsdata/cusx01.dbf',
'/u01/oracle/obsdata/czd01.dbf',
'/u01/oracle/obsdata/czx01.dbf',
'/u01/oracle/obsdata/eaad01.dbf',
'/u01/oracle/obsdata/eaax01.dbf',
'/u01/oracle/obsdata/ecd01.dbf',
'/u01/oracle/obsdata/ecx01.dbf',
'/u01/oracle/obsdata/ecxd01.dbf',
'/u01/oracle/obsdata/ecxx01.dbf',
'/u01/oracle/obsdata/engd01.dbf',
'/u01/oracle/obsdata/engx01.dbf',
'/u01/oracle/obsdata/evmd01.dbf',
'/u01/oracle/obsdata/evmx01.dbf',
'/u01/oracle/obsdata/fad01.dbf',
'/u01/oracle/obsdata/fax01.dbf',
'/u01/oracle/obsdata/femd01.dbf',
'/u01/oracle/obsdata/femx01.dbf',
'/u01/oracle/obsdata/fiid01.dbf',
'/u01/oracle/obsdata/fiix01.dbf',
'/u01/oracle/obsdata/flmd01.dbf',
'/u01/oracle/obsdata/flmx01.dbf',
'/u01/oracle/obsdata/fptd01.dbf',
'/u01/oracle/obsdata/fptx01.dbf',
'/u01/oracle/obsdata/frmd01.dbf',
'/u01/oracle/obsdata/frmx01.dbf',
'/u01/oracle/obsdata/fvd01.dbf',
'/u01/oracle/obsdata/fvx01.dbf',
'/u01/oracle/obsdata/gld01.dbf',
'/u01/oracle/obsdata/glx01.dbf',
'/u01/oracle/obsdata/gmad01.dbf',
'/u01/oracle/obsdata/gmax01.dbf',
'/u01/oracle/obsdata/gmdd01.dbf',
'/u01/oracle/obsdata/gmdx01.dbf',
'/u01/oracle/obsdata/gmed01.dbf',
'/u01/oracle/obsdata/gmex01.dbf',
'/u01/oracle/obsdata/gmfd01.dbf',
'/u01/oracle/obsdata/gmfx01.dbf',
'/u01/oracle/obsdata/gmid01.dbf',
'/u01/oracle/obsdata/gmix01.dbf',
'/u01/oracle/obsdata/gmld01.dbf',
'/u01/oracle/obsdata/gmlx01.dbf',
'/u01/oracle/obsdata/gmpd01.dbf',
'/u01/oracle/obsdata/gmpx01.dbf',
'/u01/oracle/obsdata/gmsd01.dbf',
'/u01/oracle/obsdata/gmsx01.dbf',
'/u01/oracle/obsdata/grd01.dbf',
'/u01/oracle/obsdata/grx01.dbf',
'/u01/oracle/obsdata/hrd01.dbf',
'/u01/oracle/obsdata/hrx01.dbf',
'/u01/oracle/obsdata/hrid01.dbf',
'/u01/oracle/obsdata/hrix01.dbf',
'/u01/oracle/obsdata/hxcd01.dbf',
'/u01/oracle/obsdata/hxcx01.dbf',
'/u01/oracle/obsdata/hxtd01.dbf',
'/u01/oracle/obsdata/hxtx01.dbf',
'/u01/oracle/obsdata/ibad01.dbf',
'/u01/oracle/obsdata/ibax01.dbf',
'/u01/oracle/obsdata/ibed01.dbf',
'/u01/oracle/obsdata/ibex01.dbf',
'/u01/oracle/obsdata/ibpd01.dbf',
'/u01/oracle/obsdata/ibpx01.dbf',
'/u01/oracle/obsdata/ibud01.dbf',
'/u01/oracle/obsdata/ibux01.dbf',
'/u01/oracle/obsdata/ibyd01.dbf',
'/u01/oracle/obsdata/ibyx01.dbf',
'/u01/oracle/obsdata/icxd01.dbf',
'/u01/oracle/obsdata/icxx01.dbf',
'/u01/oracle/obsdata/iebd01.dbf',
'/u01/oracle/obsdata/iebx01.dbf',
'/u01/oracle/obsdata/iemd01.dbf',
'/u01/oracle/obsdata/iemx01.dbf',
'/u01/oracle/obsdata/ieod01.dbf',
'/u01/oracle/obsdata/ieox01.dbf',
'/u01/oracle/obsdata/iesd01.dbf',
'/u01/oracle/obsdata/iesx01.dbf',
'/u01/oracle/obsdata/ieud01.dbf',
'/u01/oracle/obsdata/ieux01.dbf',
'/u01/oracle/obsdata/iexd01.dbf',
'/u01/oracle/obsdata/iexx01.dbf',
'/u01/oracle/obsdata/igcd01.dbf',
'/u01/oracle/obsdata/igcx01.dbf',
'/u01/oracle/obsdata/igfd01.dbf',
'/u01/oracle/obsdata/igfx01.dbf',
'/u01/oracle/obsdata/igsd01.dbf',
'/u01/oracle/obsdata/igsx01.dbf',
'/u01/oracle/obsdata/igwd01.dbf',
'/u01/oracle/obsdata/igwx01.dbf',
'/u01/oracle/obsdata/invd01.dbf',
'/u01/oracle/obsdata/invx01.dbf',
'/u01/oracle/obsdata/ipad01.dbf',
'/u01/oracle/obsdata/ipax01.dbf',
'/u01/oracle/obsdata/iscd01.dbf',
'/u01/oracle/obsdata/iscx01.dbf',
'/u01/oracle/obsdata/jad01.dbf',
'/u01/oracle/obsdata/jax01.dbf',
'/u01/oracle/obsdata/jed01.dbf',
'/u01/oracle/obsdata/jex01.dbf',
'/u01/oracle/obsdata/jgd01.dbf',
'/u01/oracle/obsdata/jgx01.dbf',
'/u01/oracle/obsdata/jld01.dbf',
'/u01/oracle/obsdata/jlx01.dbf',
'/u01/oracle/obsdata/jtfd01.dbf',
'/u01/oracle/obsdata/jtfx01.dbf',
'/u01/oracle/obsdata/med01.dbf',
'/u01/oracle/obsdata/mex01.dbf',
'/u01/oracle/obsdata/mfgd01.dbf',
'/u01/oracle/obsdata/mfgx01.dbf',
'/u01/oracle/obsdata/mrpd01.dbf',
'/u01/oracle/obsdata/mrpx01.dbf',
'/u01/oracle/obsdata/mscd01.dbf',
'/u01/oracle/obsdata/mscx01.dbf',
'/u01/oracle/obsdata/msdd01.dbf',
'/u01/oracle/obsdata/msdx01.dbf',
'/u01/oracle/obsdata/msod01.dbf',
'/u01/oracle/obsdata/msox01.dbf',
'/u01/oracle/obsdata/mwad01.dbf',
'/u01/oracle/obsdata/mwax01.dbf',
'/u01/oracle/obsdata/oed01.dbf',
'/u01/oracle/obsdata/oex01.dbf',
'/u01/oracle/obsdata/okcd01.dbf',
'/u01/oracle/obsdata/okcx01.dbf',
'/u01/oracle/obsdata/oked01.dbf',
'/u01/oracle/obsdata/okex01.dbf',
'/u01/oracle/obsdata/oksd01.dbf',
'/u01/oracle/obsdata/oksx01.dbf',
'/u01/oracle/obsdata/okxd01.dbf',
'/u01/oracle/obsdata/okxx01.dbf',
'/u01/oracle/obsdata/ontd01.dbf',
'/u01/oracle/obsdata/ontx01.dbf',
'/u01/oracle/obsdata/opid01.dbf',
'/u01/oracle/obsdata/opix01.dbf',
'/u01/oracle/obsdata/osmd01.dbf',
'/u01/oracle/obsdata/osmx01.dbf',
'/u01/oracle/obsdata/otad01.dbf',
'/u01/oracle/obsdata/otax01.dbf',
'/u01/oracle/obsdata/ozfd01.dbf',
'/u01/oracle/obsdata/ozfx01.dbf',
'/u01/oracle/obsdata/ozpd01.dbf',
'/u01/oracle/obsdata/ozpx01.dbf',
'/u01/oracle/obsdata/ozsd01.dbf',
'/u01/oracle/obsdata/ozsx01.dbf',
'/u01/oracle/obsdata/pad01.dbf',
'/u01/oracle/obsdata/pax01.dbf',
'/u01/oracle/obsdata/pjmd01.dbf',
'/u01/oracle/obsdata/pjmx01.dbf',
'/u01/oracle/obsdata/pmid01.dbf',
'/u01/oracle/obsdata/pmix01.dbf',
'/u01/oracle/obsdata/pnd01.dbf',
'/u01/oracle/obsdata/pnx01.dbf',
'/u01/oracle/obsdata/pod01.dbf',
'/u01/oracle/obsdata/pox01.dbf',
'/u01/oracle/obsdata/poad01.dbf',
'/u01/oracle/obsdata/poax01.dbf',
'/u01/oracle/obsdata/pomd01.dbf',
'/u01/oracle/obsdata/pomx01.dbf',
'/u01/oracle/obsdata/psad01.dbf',
'/u01/oracle/obsdata/psax01.dbf',
'/u01/oracle/obsdata/psbd01.dbf',
'/u01/oracle/obsdata/psbx01.dbf',
'/u01/oracle/obsdata/pspd01.dbf',
'/u01/oracle/obsdata/pspx01.dbf',
'/u01/oracle/obsdata/qad01.dbf',
'/u01/oracle/obsdata/qax01.dbf',
'/u01/oracle/obsdata/qpd01.dbf',
'/u01/oracle/obsdata/qpx01.dbf',
'/u01/oracle/obsdata/rgd01.dbf',
'/u01/oracle/obsdata/rgx01.dbf',
'/u01/oracle/obsdata/rhxd01.dbf',
'/u01/oracle/obsdata/rhxx01.dbf',
'/u01/oracle/obsdata/rlad01.dbf',
'/u01/oracle/obsdata/rlax01.dbf',
'/u01/oracle/obsdata/rlmd01.dbf',
'/u01/oracle/obsdata/rlmx01.dbf',
'/u01/oracle/obsdata/sspd01.dbf',
'/u01/oracle/obsdata/sspx01.dbf',
'/u01/oracle/obsdata/vead01.dbf',
'/u01/oracle/obsdata/veax01.dbf',
'/u01/oracle/obsdata/vehd01.dbf',
'/u01/oracle/obsdata/vehx01.dbf',
'/u01/oracle/obsdata/wipd01.dbf',
'/u01/oracle/obsdata/wipx01.dbf',
'/u01/oracle/obsdata/wmsd01.dbf',
'/u01/oracle/obsdata/wmsx01.dbf',
'/u01/oracle/obsdata/wpsd01.dbf',
'/u01/oracle/obsdata/wpsx01.dbf',
'/u01/oracle/obsdata/wshd01.dbf',
'/u01/oracle/obsdata/wshx01.dbf',
'/u01/oracle/obsdata/wsmd01.dbf',
'/u01/oracle/obsdata/wsmx01.dbf',
'/u01/oracle/obsdata/xdpd01.dbf',
'/u01/oracle/obsdata/xdpx01.dbf',
'/u01/oracle/obsdata/xlad01.dbf',
'/u01/oracle/obsdata/xlax01.dbf',
'/u01/oracle/obsdata/xncd01.dbf',
'/u01/oracle/obsdata/xncx01.dbf',
'/u01/oracle/obsdata/xnmd01.dbf',
'/u01/oracle/obsdata/xnmx01.dbf',
'/u01/oracle/obsdata/xnpd01.dbf',
'/u01/oracle/obsdata/xnpx01.dbf',
'/u01/oracle/obsdata/xnsd01.dbf',
'/u01/oracle/obsdata/xnsx01.dbf',
'/u01/oracle/obsdata/xtrd01.dbf',
'/u01/oracle/obsdata/xtrx01.dbf',
'/u01/oracle/obsdata/applsysd02.dbf',
'/u01/oracle/obsdata/applsysx02.dbf',
'/u01/oracle/obsdata/asld01.dbf',
'/u01/oracle/obsdata/aslx01.dbf',
'/u01/oracle/obsdata/pvd01.dbf',
'/u01/oracle/obsdata/pvx01.dbf',
'/u01/oracle/obsdata/system06.dbf',
'/u01/oracle/obsdata/itgd01.dbf',
'/u01/oracle/obsdata/itgx01.dbf',
'/u01/oracle/obsdata/ipdd01.dbf',
'/u01/oracle/obsdata/ipdx01.dbf',
'/u01/oracle/obsdata/eamd01.dbf',
'/u01/oracle/obsdata/eamx01.dbf',
'/u01/oracle/obsdata/enid01.dbf',
'/u01/oracle/obsdata/enix01.dbf',
'/u01/oracle/obsdata/okrd01.dbf',
'/u01/oracle/obsdata/okrx01.dbf',
'/u01/oracle/obsdata/cued01.dbf',
'/u01/oracle/obsdata/cuex01.dbf',
'/u01/oracle/obsdata/fted01.dbf',
'/u01/oracle/obsdata/ftex01.dbf',
'/u01/oracle/obsdata/msrd01.dbf',
'/u01/oracle/obsdata/msrx01.dbf',
'/u01/oracle/obsdata/igid01.dbf',
'/u01/oracle/obsdata/igix01.dbf',
'/u01/oracle/obsdata/portal01.dbf',
'/u01/oracle/obsdata/ahld01.dbf',
'/u01/oracle/obsdata/ahlx01.dbf',
'/u01/oracle/obsdata/ahmd01.dbf',
'/u01/oracle/obsdata/ahmx01.dbf',
'/u01/oracle/obsdata/aspd01.dbf',
'/u01/oracle/obsdata/aspx01.dbf',
'/u01/oracle/obsdata/bivd01.dbf',
'/u01/oracle/obsdata/bivx01.dbf',
'/u01/oracle/obsdata/csed01.dbf',
'/u01/oracle/obsdata/csex01.dbf',
'/u01/oracle/obsdata/csid01.dbf',
'/u01/oracle/obsdata/csix01.dbf',
'/u01/oracle/obsdata/csld01.dbf',
'/u01/oracle/obsdata/cslx01.dbf',
'/u01/oracle/obsdata/cugd01.dbf',
'/u01/oracle/obsdata/cugx01.dbf',
'/u01/oracle/obsdata/iecd01.dbf',
'/u01/oracle/obsdata/iecx01.dbf',
'/u01/oracle/obsdata/imcd01.dbf',
'/u01/oracle/obsdata/imcx01.dbf',
'/u01/oracle/obsdata/imtd01.dbf',
'/u01/oracle/obsdata/imtx01.dbf',
'/u01/oracle/obsdata/jtmd01.dbf',
'/u01/oracle/obsdata/jtmx01.dbf',
'/u01/oracle/obsdata/jtsd01.dbf',
'/u01/oracle/obsdata/jtsx01.dbf',
'/u01/oracle/obsdata/okbd01.dbf',
'/u01/oracle/obsdata/okbx01.dbf',
'/u01/oracle/obsdata/okid01.dbf',
'/u01/oracle/obsdata/okix01.dbf',
'/u01/oracle/obsdata/okod01.dbf',
'/u01/oracle/obsdata/okox01.dbf',
'/u01/oracle/obsdata/posd01.dbf',
'/u01/oracle/obsdata/posx01.dbf',
'/u01/oracle/obsdata/xnid01.dbf',
'/u01/oracle/obsdata/xnix01.dbf',
'/u01/oracle/obsdata/system07.dbf',
'/u01/oracle/obsdata/system08.dbf',
'/u01/oracle/obsdata/system09.dbf',
'/u01/oracle/obsdata/rbs02.dbf',
'/u01/oracle/obsdata/amfd01.dbf',
'/u01/oracle/obsdata/amfx01.dbf',
'/u01/oracle/obsdata/bned01.dbf',
'/u01/oracle/obsdata/bnex01.dbf',
'/u01/oracle/obsdata/csmd01.dbf',
'/u01/oracle/obsdata/csmx01.dbf',
'/u01/oracle/obsdata/dddd01.dbf',
'/u01/oracle/obsdata/dddx01.dbf',
'/u01/oracle/obsdata/domd01.dbf',
'/u01/oracle/obsdata/domx01.dbf',
'/u01/oracle/obsdata/egod01.dbf',
'/u01/oracle/obsdata/egox01.dbf',
'/u01/oracle/obsdata/ibcd01.dbf',
'/u01/oracle/obsdata/ibcx01.dbf',
'/u01/oracle/obsdata/okld01.dbf',
'/u01/oracle/obsdata/oklx01.dbf',
'/u01/oracle/obsdata/pjid01.dbf',
'/u01/oracle/obsdata/pjix01.dbf',
'/u01/oracle/obsdata/pond01.dbf',
'/u01/oracle/obsdata/ponx01.dbf',
'/u01/oracle/obsdata/qotd01.dbf',
'/u01/oracle/obsdata/qotx01.dbf',
'/u01/oracle/obsdata/qrmd01.dbf',
'/u01/oracle/obsdata/qrmx01.dbf',
'/u01/oracle/obsdata/discoverer01.dbf',
'/u01/oracle/obsdata/cinvd01.dbf',
'/u01/oracle/obsdata/cinvx01.dbf',
'/u01/oracle/obsdata/cpod01.dbf',
'/u01/oracle/obsdata/cpox01.dbf',
'/u01/oracle/obsdata/capd01.dbf',
'/u01/oracle/obsdata/capx01.dbf',
'/u01/oracle/obsdata/card01.dbf',
'/u01/oracle/obsdata/carx01.dbf',
'/u01/oracle/obsdata/cqcd01.dbf',
'/u01/oracle/obsdata/cqcx01.dbf',
'/u01/oracle/obsdata/cfndd01.dbf',
'/u01/oracle/obsdata/cfndx01.dbf',
'/u01/oracle/obsdata/cgld01.dbf',
'/u01/oracle/obsdata/cglx01.dbf',
'/u01/oracle/obsdata/convd01.dbf',
'/u01/oracle/obsdata/applsysd03.dbf',
'/u01/oracle/obsdata/applsysx03.dbf',
'/u01/oracle/obsdata/cwpld01.dbf',
'/u01/oracle/obsdata/cwplx01.dbf',
'/u01/oracle/obsdata/csyd01.dbf',
'/u01/oracle/obsdata/csyx01.dbf',
'/u01/oracle/obsdata/cpod02.dbf',
'/u01/oracle/obsdata/csyd02.dbf'
CHARACTER SET UTF8
ALTER DATABASE OPEN RESETLOGS;
DROP tablespace TEMP;
DROP tablespace TEMPSYN;
CREATE temporary tablespace TEMP TEMPFILE '/u01/oracle/obsdata/temp01.dbf'
SIZE 1048576000 REUSE extent management local uniform size 128K;
CREATE temporary tablespace TEMPSYN TEMPFILE '/u01/oracle/obsdata/tempsyn01.dbf'
SIZE 1048576000 REUSE extent management local uniform size 128K;
Edited by: amychan60 on Jun 17, 2009 9:30 PM -
ORA-06562: type of out argument must match type of column or bind variab
Hi everybody
I have this -6562 oracle error when running a procedure where ther's the dbms_sql package
here is the code :
PROCEDURE PROC_CREATE_CAT_FILES (
v_period in varchar2,
v_cat_files_dir in varchar2
as
v_detail varchar2(2000);
cursor_name INTEGER;
rows_processed INTEGER;
s_PATHNAME VARCHAR2(300) ;
s_FILENAME VARCHAR(300) ;
bFile_handle UTL_FILE.FILE_TYPE ;
sselect varchar2(2000 ) ;
begin
cursor_name := dbms_sql.open_cursor;
sselect :='select '
|| 'bd.contrno||'';''||'
|| 'bi_ref||'';''||'
|| 'substr(area,2)||'';''||'
|| 'subno||'';''||'
|| 'billtext_4||'';''||'
|| 'to_char(transdatetime,''DD.MM.YYYY'')||'';''||'
|| 'to_char(transdatetime,''HH:MI:SS'')||'';''||''\"''||'
|| 'substr(zode_lang.pr_text,1,14)||''\"''||'';''||''\"''||'
|| 'substr(ctg_lang.pr_text,1,14)||''\"''||'';''||'
|| 'substr(billtext_2,1,20)||'';''||'
|| 'to_char((substr(to_char(bi_quantity,''00000000''),4,2))*60*60+'
|| '(substr(to_char(bi_quantity,''00000000''),6,2))*60+'
|| '(substr(to_char(bi_quantity,''00000000''),8,2)),''FM999999'')||'';''||'
|| 'to_char(nvl(billamount,0),''FM0000.0000'')||'';''||'
|| 'to_char(nvl(vol_discount,0)+nvl(flat_discount,0),''FM0000.0000'')||'';''||'
|| 'to_char(ar_invdate,''DD.MM.YYYY'')||'';''||'
|| 'debamount_cur '
|| 'from '
|| v_bi_dump
|| ' bd,'
|| 'q_arinv_head arh,'
|| 'pr_text_rows ctg_lang,'
|| 'pr_text_rows zode_lang '
|| 'where '
|| 'bd.bi_ref = arh.ar_ref '
|| 'and ''CTG_''||chargetype||''_''||chargetype_group = ctg_lang.pr_field_id '
|| 'and bd.billtext_1 = zode_lang.pr_field_id '
|| 'and ctg_lang.pgm_name = ''Q30INV'' '
|| 'and ctg_lang.language = ''EN'' '
|| 'and zode_lang.pgm_name = ''Q30INV'' '
|| 'and zode_lang.language = ''EN'' '
|| 'and bd.contrno = '
|| v_contrno
|| ' and bd.bi_ref = '
|| v_invoice_no
dbms_sql.parse(cursor_name,sselect,dbms_sql.v7);
dbms_sql.define_column_char(cursor_name,1,v_detail,2000);
rows_processed := dbms_sql.execute(cursor_name);
loop
if dbms_sql.fetch_rows(cursor_name) > 0 then
dbms_sql.column_value(cursor_name,1,v_detail);
the problem is the last line, the variable v_detail is varchar2, but seems to not match the result of the query where there's the big string.
thanks for your help
AlainI guess that the ORA itself is giving some clues why you failed to do what you intended.
http://download.oracle.com/docs/cd/B10501_01/server.920/a96525/e12700.htm#1006284
So it seems like [exchanging partitions|http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/partiti.htm#sthref2762] between composit partitioned table and noncomposit partitioned table will not work.
See 198120.1 , you are propably trying to do exchange between unsuported combination of partitioning types. -
Error while creating asm disk group:::urgent
i am getting this error though i have given total path in DISK parameter.
SQL> CREATE DISKGROUP dgroup1
2 NORMAL REDUNDANCY
3 FAILGROUP ctlr1
4 DISK 'disk1'
5 FAILGROUP ctlr2
6 DISK 'disk2';
CREATE DISKGROUP dgroup1
ERROR at line 1:
ORA-15018: diskgroup cannot be created
ORA-15031: disk specification 'disk2' matches no disks
ORA-15031: disk specification 'disk1' matches no diskshi all,
thnx for ur attention i am able to solve the issue by doing the following steps...
[oracle@sierra200 product]$ su - root
Password:
[root@sierra200 root]# losetup /dev/loop1 /u04/app/oracle/product/asmdisks/disk1
[root@sierra200 root]# losetup /dev/loop1 /u04/app/oracle/product/asmdisks/disk2
ioctl: LOOP_SET_FD: Device or resource busy
[root@sierra200 root]# losetup /dev/loop1 /u04/app/oracle/product/asmdisks/disk1
ioctl: LOOP_SET_FD: Device or resource busy
[root@sierra200 root]# losetup /dev/loop2 /u04/app/oracle/product/asmdisks/disk2
[root@sierra200 root]# vi /etc/sysconfig/rawdevices
# raw device bindings
# format: <rawdev> <major> <minor>
# <rawdev> <blockdev>
# example: /dev/raw/raw1 /dev/sda1
# /dev/raw/raw2 8 5
/dev/raw/raw1 /dev/loop1
/dev/raw/raw2 /dev/loop2
[root@sierra200 root]# /etc/init.d/rawdevices start
Assigning devices:
/dev/raw/raw1 --> /dev/loop1
/dev/raw/raw1: bound to major 7, minor 1
/dev/raw/raw2 --> /dev/loop2
/dev/raw/raw2: bound to major 7, minor 2
done
[root@sierra200 root]# chown oracle:dba /dev/raw/raw1
[root@sierra200 root]# chown oracle:dba /dev/raw/raw2
[root@sierra200 root]# chmod 660 /dev/raw/raw1
[root@sierra200 root]# chmod 660 /dev/raw/raw2
[root@sierra200 root]# exit
logout
shut the instance and make the disk string as '/dev/raw/raw*'
and then create spfile from pfile. and then nomount the instance.
SQL> CREATE DISKGROUP dgroup1
2 NORMAL REDUNDANCY
3 FAILGROUP ctlr1
4 DISK '/dev/raw/raw1'
5 FAILGROUP ctlr2
6 DISK '/dev/raw/raw2';
Diskgroup created.
SQL> select name, state,total_mb,free_mb,path from v$ASM_DISK;
NAME STATE TOTAL_MB FREE_MB
PATH
DGROUP1_0001 NORMAL 100 50
/dev/raw/raw2
DGROUP1_0000 NORMAL 100 50
/dev/raw/raw1
Regards,
Sravan -
Using udev devices for ASM disk on Linux
Hello all,
I need details related to using udev devices as ASM disk on Linux.
What I want to know is, once i get the list of ASM Disks that are used to create the DiskGroups, based on the path of the Disk (whether /dev/sdj or /dev/dm-3 or /dev/asm_udev_device, /dev/vx/<vxvm-volume>, /dev/<lvm-volume>) how do i get to know if the device type is a udev device?
I want to know an automated process, so that i can script it out to separate out each device easily.
Please let me know if anyone has expertise on using udev devices with Oracle ASM.
I have referred the link but no much details available http://www.oracle.com/technology/products/database/asm/pdf/device-mapper-udev-crs-asm%20rh4.pdf
Further, the behavior of udevinfo command is very different across version of Linux. From Suse 10 onwards, udevadm has to be used instead.
Its confusing to me.
Please help.
~Sumeet.My installation, ASM On SI
S.O HP-UIx
Disk internal, not SAN
Internal disk configuration for Oracle.
PV Name /dev/dsk/c11t0d0
PV Name /dev/dsk/c11t1d0
PV Name /dev/dsk/c11t2d0
PV Name /dev/dsk/c11t3d0
PV Name /dev/dsk/c11t4d0
PV Name /dev/dsk/c11t6d0
Vg:
/dev/vgora
Lv
/dev/vgora/lvu01 <-- Oracle Bin mounted /u00
/dev/vgora/lvu02 <-- External Archive /u02
In /dev/vgora
brw-r----- 1 root sys 64 0x010001 Mar 8 14:42 lvu01
brw-r----- 1 root sys 64 0x010002 Mar 8 16:15 lvu02
brwxrwxr-x 1 root sys 64 0x010003 Mar 19 14:19 lvasm01
brwxrwxr-x 1 root sys 64 0x010004 Mar 19 14:20 lvasm02
brwxrwxr-x 1 root sys 64 0x010005 Mar 19 14:20 lvasm03
brwxrwxr-x 1 root sys 64 0x010006 Mar 19 14:20 lvasm04
brwxrwxr-x 1 root sys 64 0x010007 Mar 19 14:20 lvasm05
brwxrwxr-x 1 root sys 64 0x010008 Mar 19 14:20 lvasm06
brwxrwxr-x 1 root sys 64 0x010009 Mar 19 14:20 lvasm07
brwxrwxr-x 1 root sys 64 0x01000a Mar 19 14:20 lvasm08
brwxrwxr-x 1 root sys 64 0x01000b Mar 19 14:20 lvasm09
brwxrwxr-x 1 root sys 64 0x01000c Mar 19 14:21 lvasm10
crw-r----- 1 root sys 64 0x010001 Mar 8 14:42 rlvu01
crw-r----- 1 root sys 64 0x010002 Mar 8 16:15 rlvu02
crw-r--r-- 1 root sys 64 0x010000 Mar 8 14:19 group
FOR ASM
crw-rw---- 1 oracle dba 64 0x010003 Mar 19 14:19 rlvasm01
crw-rw---- 1 oracle dba 64 0x010004 Mar 19 14:20 rlvasm02
crw-rw---- 1 oracle dba 64 0x010005 Mar 19 14:20 rlvasm03
crw-rw---- 1 oracle dba 64 0x010006 Mar 19 14:20 rlvasm04
crw-rw---- 1 oracle dba 64 0x010007 Mar 19 14:20 rlvasm05
crw-rw---- 1 oracle dba 64 0x010008 Mar 19 14:20 rlvasm06
crw-rw---- 1 oracle dba 64 0x010009 Mar 19 14:20 rlvasm07
crw-rw---- 1 oracle dba 64 0x01000a Mar 19 14:20 rlvasm08
crw-rw---- 1 oracle dba 64 0x01000b Mar 19 14:20 rlvasm09
crw-rw---- 1 oracle dba 64 0x01000c Mar 19 14:21 rlvasm10
And the problem is:
When i run dbca for create diskgroup, that not recognize the disk.
I will set asm_diskstring with the correctly path.
I try to create a diskgroup from command line, but i see this error.
SQL> create diskgroup DG_DATA_01 external redundancy DISK '/dev/vgora/rlvasm01' ;
create diskgroup DG_DATA_01 external redundancy DISK '/dev/vgora/rlvasm01'
ERROR at line 1:
ORA-15018: diskgroup cannot be created
ORA-15031: disk specification '/dev/vgora/rlvasm01' matches no disks
ORA-15025: could not open disk '/dev/vgora/rlvasm01'
ORA-15059: invalid device type for ASM disk
Additional information: 255 -
Getting errors while creating asm disk groups
while creating disk groups on 10gR2 database on linux redhat 5.3
im getting following errors :
ERROR at line 1:
ORA-15018: diskgroup cannot be created
ORA-15031: disk specification '/dev/raw/raw4' matches no disks
ORA-15025: could not open disk '/dev/raw/raw4'
ORA-27041: unable to open file
Linux Error: 19: No such device
Additional information: 42
Additional information: 213402552
Additional information: -1079643768
ORA-15031: disk specification '/dev/raw/raw3' matches no disks
ORA-15025: could not open disk '/dev/raw/raw3'
ORA-27041: unable to open file
Linux Error: 19: No such device
Additional information: 42
Additional information: 213402552
Additional information: -1079643768
ORA-15031: disk specification '/dev/raw/raw2' matches no disks
ORA-15025: could not open disk '/dev/raw/raw2'
ORA-27041: unable to open file
Linux Error: 19: No such device
Additional information: 42
Additional information: 213402552
Additional information: -1079643768
ORA-15031: disk specification '/dev/raw/raw1' matches no disks
ORA-15025: could not open disk '/dev/raw/raw1'
ORA-27041: unable to open file
Linux Error: 19: No such devicethese are contents of my initORCL.ora :
ORCL.__db_cache_size=251658240
ORCL.__java_pool_size=4194304
ORCL.__large_pool_size=4194304
ORCL.__shared_pool_size=104857600
ORCL.__streams_pool_size=0
*.audit_file_dest='/opt/oracle/product/10.2.0/db_1/admin/ORCL/adump'
*.background_dump_dest='/opt/oracle/product/10.2.0/db_1/admin/ORCL/bdump'
*.compatible='10.2.0.1.0'
*.control_files='/opt/oracle/product/10.2.0/oradata/ORCL/control01.ctl','/opt/oracle/product/10.2.0/oradata/ORCL/control02.ctl','/opt/oracle/product/10.2.0/oradata/ORCL/control03.ctl'
*.core_dump_dest='/opt/oracle/product/10.2.0/db_1/admin/ORCL/cdump'
*.db_block_size=8192
*.db_domain=''
*.db_file_multiblock_read_count=16
*.db_name='ORCL'
*.db_recovery_file_dest='/opt/oracle/product/10.2.0/db_1/flash_recovery_area'
*.db_recovery_file_dest_size=2147483648
*.dispatchers='(PROTOCOL=TCP) (SERVICE=ORCLXDB)'
*.job_queue_processes=10
*.local_listener='LISTENER_ORCL'
*.log_archive_dest='/opt/oracle/product/10.2.0/db_1/flash_recovery_area/ORCL/archives'
*.log_archive_format='PROD_%t_%s_%r.ARC'
*.log_archive_start=TRUE
*.open_cursors=300
*.pga_aggregate_target=121634816
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.sga_target=365953024
*.undo_management='AUTO'
*.undo_tablespace='UNDOTBS1'
*.user_dump_dest='/opt/oracle/product/10.2.0/db_1/admin/ORCL/udump'
these are contents of init+ASM.ora
# Automatic Storage Management
# asmallow_only_raw_disks=false
# asm_diskgroups='TESTDB_DATA1'
# Default asm_diskstring values for supported platforms:
# Solaris (32/64 bit) /dev/rdsk/*
# Windows NT/XP \\.\orcldisk*
# Linux (32/64 bit) /dev/raw/*
# HPUX /dev/rdsk/*
# HPUX(Tru 64) /dev/rdisk/*
# AIX /dev/rhdisk/*
# asm_diskstring=''
# Diagnostics and Statistics
background_dump_dest=/opt/oracle/product/10.2.0/db_1/admin/+ASM/bdump
core_dump_dest=/opt/oracle/product/10.2.0/db_1/admin/+ASM/cdump
user_dump_dest=/opt/oracle/product/10.2.0/db_1/admin/+ASM/udump
# Miscellaneous
instance_type=asm
##compatible=10.1.0.4.0
compatible=10.2.0.1.0
DB_UNIQUE_NAME=+ASM
# Pools
large_pool_size=12M
# Security and Auditing
remote_login_passwordfile=exclusive
disk groups are succcesfully configured but my database is still showing old file system.
please guide
Edited by: user13376823 on Oct 22, 2012 10:35 AM -
ORA-15018: diskgroup cannot be created
Dear All,
I am trying to create ASM Disk group using SQL but geting blow error not able to create asm diskgroup.
SQL> CREATE DISKGROUP dg1 normal redundancy
2 failgroup dg1_fg01 disk
3 '/dev/sdf1' name raw_disk1,
4 '/dev/sdg1' name raw_disk2
5 failgroup dg_1fg02 disk
6 '/dev/sdh1' name raw_disk3,
7 '/dev/sdi1' name raw_disk4;
CREATE DISKGROUP dg1 normal redundancy
ERROR at line 1:
ORA-15018: diskgroup cannot be created
ORA-15031: disk specification '/dev/sdi1' matches no disks
ORA-15025: could not open disk '/dev/sdi1'
ORA-15056: additional error message
Linux Error: 13: Permission denied
Additional information: 42
Additional information: 3674204
Additional information: 3776832
ORA-15031: disk specification '/dev/sdh1' matches no disks
ORA-15025: could not open disk '/dev/sdh1'
ORA-15056: additional error message
Linux Error: 13: Permission denied
Additional information: 42
Additional information: 3674204
Additional information: 3776832
ORA-15031: disk specification '/dev/sdg1' matches no disks
ORA-15025: could not open disk '/dev/sdg1'
ORA-15056: additional error message
Linux Error: 13: Permission denied
Additional information: 42
Additional information: 3674204
Additional information: 3776832
ORA-15031: disk specification '/dev/sdf1' matches no disks
ORA-15025: could not open disk '/dev/sdf1'
ORA-15056: additional error message
Linux Error: 13: Permission denied
Additional informat
When i checked wheather the disk are recognized by asm or not by checking as
SQL> select disk_number,name,path,mount_status,header_status,mode_status,state,failgroup,repair_timer from v$asm_disk;
DISK_NUMBER NAME PATH MOUNT_S HEADER_STATU MODE_ST STATE FAILGROUP REPAIR_TIMER
0 ASMDATA1 ORCL:ASMDATA1 CACHED MEMBER ONLINE NORMAL ASMDATA1 0
1 ASMDATA2 ORCL:ASMDATA2 CACHED MEMBER ONLINE NORMAL ASMDATA2 0
0 ASMDATA3 ORCL:ASMDATA3 CACHED MEMBER ONLINE NORMAL ASMDATA3 0
1 ASMDATA4 ORCL:ASMDATA4 CACHED MEMBER ONLINE NORMAL ASMDATA4 0
7 ORCL:RAW_DISK4 CLOSED PROVISIONED ONLINE NORMAL 0
6 ORCL:RAW_DISK3 CLOSED PROVISIONED ONLINE NORMAL 0
5 ORCL:RAW_DISK2 CLOSED PROVISIONED ONLINE NORMAL 0
4 ORCL:RAW_DISK1 CLOSED PROVISIONED ONLINE NORMAL 0
8 rows selected.
So anyone from you genius kindly let me know where i am mistaking
Thanks in advanceInstead of '/dev/sd..' try to use 'ORCL:RAW_DISK..' (as in v$asm_disk.path column).
-
Receiving this error and everything looks like it should be, any ideas would be immensely appreciated. The 3 devices at the bottom are the asmdisks.
[arqopasr29].ora11g:/home/ora11g > oracleasm-discover
Using ASMLib from /opt/oracle/extapi/64/asm/orcl/1/libasm.so
[ASM Library - Generic Linux, version 2.0.4 (KABI_V2)]
Discovered disk: ORCL:ASM_CONF [12287968 blocks (6291439616 bytes), maxio 512]
Discovered disk: ORCL:DATADG_DISK [12288000 blocks (6291456000 bytes), maxio 512]
Discovered disk: ORCL:FRADG_DISK [12288000 blocks (6291456000 bytes), maxio 512]
[arqopasr29].ora11g:/home/ora11g > /opt/oracle/app/ora11g/product/11.2.0/grid/bin/asmca -silent -oui_internal -configureASM -diskString '/dev/oracleasm/disks' -diskGroupName ASM_CONF -diskList ORCL:ASM_CONF -redundancy EXTERNAL
SYS_PASSWORD_PROMPT
Oracle12345678
ASMSNMP_PASSWORD_PROMPT
Oracle12345678
Configuring ASM failed with the following message:
One or more disk group(s) creation failed as below:
Disk Group ASM_CONF creation failed with the following message:
ORA-15018: diskgroup cannot be created
ORA-15031: disk specification 'ORCL:ASM_CONF' matches no disks
ORA-15014: path 'ORCL:ASM_CONF' is not in the discovery set
[arqopasr29].ora11g:/home/ora11g > ll /dev/sdb*
brw-rw---- 1 ora11g oinstall 8, 16 Oct 24 16:32 /dev/sdb
brw-r----- 1 ora11g oinstall 8, 17 Oct 25 13:01 /dev/sdb1
brw-r----- 1 ora11g oinstall 8, 18 Oct 25 13:01 /dev/sdb2
brw-r----- 1 ora11g oinstall 8, 19 Oct 25 13:01 /dev/sdb3
[arqopasr29].ora11g:/home/ora11g > ll /dev/oracleasm/disks
total 0
brw-rw---- 1 ora11g oinstall 8, 17 Oct 25 13:01 ASM_CONF
brw-rw---- 1 ora11g oinstall 8, 18 Oct 25 13:01 DATADG_DISK
brw-rw---- 1 ora11g oinstall 8, 19 Oct 25 13:01 FRADG_DISK
[arqopasr29].ora11g:/home/ora11g >
Any more needed information I can post np.
TksHi,
[arqopasr29].ora11g:/home/ora11g > /opt/oracle/app/ora11g/product/11.2.0/grid/bin/asmca -silent -oui_internal -configureASM -diskString '/dev/oracleasm/disks' -diskGroupName ASM_CONF -diskList ORCL:ASM_CONF -redundancy EXTERNALYou are setting wrong disk discovery path to be used by ASM:
Your config:
-diskstring : /dev/oracleasm/disks
-diskList: ORCL:ASM_CONFYou are mixing the disk discovery path which can be configured in different ways.
1. Using /dev/oraclasm/disks/
2. Using ORCL:*
Try it:
-diskString : '/dev/oracleasm/disks/*'
-diskList : /dev/oracleasm/disk/ASM_CONFor
-diskString : 'ORCL:*'
-diskList : ORCL:ASM_CONFSecond problem:
brw-rw---- 1 ora11g oinstall 8, 17 Oct 25 13:01 ASM_CONF
brw-rw---- 1 ora11g oinstall 8, 18 Oct 25 13:01 DATADG_DISK
brw-rw---- 1 ora11g oinstall 8, 19 Oct 25 13:01 FRADG_DISKYou configured wrong OS group (oinstall) to ASMDISK. You must re-config ASMLib to OS Group 'asmadmin' or 'dba' depend which group you configured during Installation.
Hope this help,
Levi Pereira
Edited by: Levi Pereira on Oct 25, 2011 10:32 PM
Maybe you are looking for
-
Final cut pro vs. final cut express
I'm a complete newbie looking to get into basic video. What are the main differences between final cut pro and xpress. Thanks!!
-
No Skype Video Calls on the N8
Can anybody give me one good reason why a Video Call cannot be made using Skype on the N8? Surely the N8 is built for such applications with its forward facing camera and excellent specifications... Is somebody not paying somebody royalties somewher
-
Want to Read BLOB data and display on Oracle form
Hi All, I have a table with a BLOB field and there is blob data saved here against a account id. I want to display the blob data on the oracle forms front end for the queried account id Any one to help me out how to read and display blob data in Orac
-
Captivate 6, error 16 when attempting to launch
I have adobe Captivate 6. When I attempt to launch it, I receive an error 16. Can you assist?
-
Hello Experts I am facing a small issue. I have a landing ODS (ZVAITM). From which my data is going to Domestic cube(ZCDOM). Now i got a requirement to load the data from the landing ods (ZVAITM) to other cube export (ZCEXP). Now my problem is if i u