Ora-12091 while creating partition
Hi,
I am trying to do list partitioning on a table.While partitioning I came to know materalize view exist for that table.So i dropped the materalized view but still facing the same problem.
I am getting the above error when I am trying to execute following command.
exec DBMS_REDEFINITION.CAN_REDEF_TABLE('usrname','tblename');
The database version is 10.1.0.5.
Hi,
USE THE BELOW EXAMPLES.
During the reorganization, Oracle creates some temporary objects, such as Materialized-View Logs (MLOG$_<table>) or indexes that support ROWID constraints .
You therefore need to make sure that there is enough free space in this tablespace. If necessary, extend the tablespace for the duration of the reorganization or set the tablespace to Auto Extend.
SQL> begin
dbms_redefinition.can_redef_table
(uname=>'ADAM',
tname=>'ORIGINAL',
options_flag=>DBMS_REDEFINITION.CONS_USE_ROWID);
end;
create table interim
(id number,
channel_id number(1),
amount_sold number(4),
cust_id number(4),
time_id date)
partition by range (cust_id)
interval (10)
(partition p1 values less than (10));
Similar Messages
-
Getting Error ORA-00604 While Creating View from front Ent
Hello All,
I am getting ORA-00604 while creating view from the front end. And some time I get Maximum cursor open, It is ok amy be I am opening cursors in while loop. While ORA-00604 is giving lots of truble to me. In help it said to contact Oracle service, I dont know how to do that. Help me.Please post your view definition including the complete error_message and also the relevant parts of your code with the while loop.
-
Error while creating partition table
Hi frnds i am getting error while i am trying to create a partition table using range
getting error ORA-00906: missing left parenthesis.I used the following statement to create partition table
CREATE TABLE SAMPLE_ORDERS
(ORDER_NUMBER NUMBER,
ORDER_DATE DATE,
CUST_NUM NUMBER,
TOTAL_PRICE NUMBER,
TOTAL_TAX NUMBER,
TOTAL_SHIPPING NUMBER)
PARTITION BY RANGE(ORDER_DATE)
PARTITION SO99Q1 VALUES LESS THAN TO_DATE(‘01-APR-1999’, ‘DD-MON-YYYY’),
PARTITION SO99Q2 VALUES LESS THAN TO_DATE(‘01-JUL-1999’, ‘DD-MON-YYYY’),
PARTITION SO99Q3 VALUES LESS THAN TO_DATE(‘01-OCT-1999’, ‘DD-MON-YYYY’),
PARTITION SO99Q4 VALUES LESS THAN TO_DATE(‘01-JAN-2000’, ‘DD-MON-YYYY’),
PARTITION SO00Q1 VALUES LESS THAN TO_DATE(‘01-APR-2000’, ‘DD-MON-YYYY’),
PARTITION SO00Q2 VALUES LESS THAN TO_DATE(‘01-JUL-2000’, ‘DD-MON-YYYY’),
PARTITION SO00Q3 VALUES LESS THAN TO_DATE(‘01-OCT-2000’, ‘DD-MON-YYYY’),
PARTITION SO00Q4 VALUES LESS THAN TO_DATE(‘01-JAN-2001’, ‘DD-MON-YYYY’)
;More than one of them. Try this instead:
CREATE TABLE SAMPLE_ORDERS
(ORDER_NUMBER NUMBER,
ORDER_DATE DATE,
CUST_NUM NUMBER,
TOTAL_PRICE NUMBER,
TOTAL_TAX NUMBER,
TOTAL_SHIPPING NUMBER)
PARTITION BY RANGE(ORDER_DATE) (
PARTITION SO99Q1 VALUES LESS THAN (TO_DATE('01-APR-1999', 'DD-MON-YYYY')),
PARTITION SO99Q2 VALUES LESS THAN (TO_DATE('01-JUL-1999', 'DD-MON-YYYY')),
PARTITION SO99Q3 VALUES LESS THAN (TO_DATE('01-OCT-1999', 'DD-MON-YYYY')),
PARTITION SO99Q4 VALUES LESS THAN (TO_DATE('01-JAN-2000', 'DD-MON-YYYY')),
PARTITION SO00Q1 VALUES LESS THAN (TO_DATE('01-APR-2000', 'DD-MON-YYYY')),
PARTITION SO00Q2 VALUES LESS THAN (TO_DATE('01-JUL-2000', 'DD-MON-YYYY')),
PARTITION SO00Q3 VALUES LESS THAN (TO_DATE('01-OCT-2000', 'DD-MON-YYYY')),
PARTITION SO00Q4 VALUES LESS THAN (TO_DATE('01-JAN-2001', 'DD-MON-YYYY')))In the future, if you are having problems, go to Morgan's Library at www.psoug.org.
Find a working demo, copy it, then modify it for your purposes. -
Getting ORA-32700 while creating database
I am getting following error when creating the database :
ORA-32700 error occurred in DIAG Group Service
The error description is as follows :
Cause: An unexpected error occurred while performing a DIAG Group Service operation.
Action: Verify that the DIAG process is still active. Also, check the Oracle DIAG trace files for errors.
The setup is as follows :
Database : Oracle 9i Rel 2.
OS : IBM AIX 4.3.3
We are trying to create the database from sqlplus/dbca. It seems that in the database creation process it is throwing the error while it is trying to create the control files.
listener.ora :
LSNR_TSEDMDB2 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = prcsmbk1)(PORT = 1522))
TNSNAMES.ORA
LISTENER_TSEDMDB2 =
(ADDRESS = (PROTOCOL = TCP)(HOST = prcsmbk1)(PORT = 1522))
We have IBM HACMP Cluster setup on 3 machines. This machine (prcsmbk1) on which I am getting the error while creating the database is part of that HACMP cluster. While installing the Oracle database software also it gave me a list of the 3 machines which are in HACMP cluster. We are not planning to setup RAC, but still it seems like while creating the database control files Oracle is trying to perform some group service operation.
Alert log :
Sat Jan 3 03:31:18 2004
Starting ORACLE instance (normal)
Sat Jan 3 03:31:18 2004
Global Enqueue Service Resources = 64, pool = 4
Sat Jan 3 03:31:18 2004
Global Enqueue Service Enqueues = 128
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
GES IPC: Receivers 1 Senders 1
GES IPC: Buffers Receive 1000 Send 530 Reserve 300
GES IPC: Msg Size Regular 432 Batch 2048
SCN scheme 3
Using log_archive_dest parameter default value
LICENSE_MAX_USERS = 0
SYS auditing is disabled
Starting up ORACLE RDBMS Version: 9.2.0.4.0.
System parameters with non-default values:
processes = 150
timed_statistics = TRUE
shared_pool_size = 117440512
large_pool_size = 16777216
java_pool_size = 117440512
control_files = /u01/app/oracle/oradata/TSEDMDB2/control01.ctl
db_block_size = 8192
db_cache_size = 33554432
compatible = 9.2.0.0.0
db_file_multiblock_read_count= 16
fast_start_mttr_target = 300
undo_management = AUTO
undo_tablespace = UNDOTBS1
undo_retention = 10800
remote_login_passwordfile= EXCLUSIVE
db_domain =
instance_name = TSEDMDB2
dispatchers = (PROTOCOL=TCP) (SERVICE=TSEDMDB2XDB)
local_listener = LISTENER_TSEDMDB2
job_queue_processes = 10
hash_join_enabled = TRUE
background_dump_dest = /u01/app/oracle/admin/TSEDMDB2/bdump
user_dump_dest = /u01/app/oracle/admin/TSEDMDB2/udump
core_dump_dest = /u01/app/oracle/admin/TSEDMDB2/cdump
sort_area_size = 524288
db_name = TSEDMDB2
open_cursors = 300
star_transformation_enabled= FALSE
query_rewrite_enabled = FALSE
pga_aggregate_target = 25165824
aq_tm_processes = 1
Sat Jan 3 03:31:19 2004
clUster interconnect IPC version:Oracle UDP/IP
IPC Vendor 1 proto 2 Version 1.0
PMON started with pid=2
DIAG started with pid=3
LMON started with pid=4
LMD0 started with pid=5
DBW0 started with pid=6
LGWR started with pid=7
CKPT started with pid=8
SMON started with pid=9
RECO started with pid=10
CJQ0 started with pid=11
QMN0 started with pid=12
Sat Jan 3 03:31:24 2004
starting up 1 shared server(s) ...
starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
Sat Jan 3 03:31:25 2004
Create controlfile reuse set database TSEDMDB2
MAXINSTANCES 1
MAXLOGHISTORY 1
MAXLOGFILES 50
MAXLOGMEMBERS 5
MAXDATAFILES 100
Datafile
'/u01/app/oracle/oradata/TSEDMDB2/cwmlite01.dbf' ,
'/u01/app/oracle/oradata/TSEDMDB2/drsys01.dbf' ,
'/u01/app/oracle/oradata/TSEDMDB2/example01.dbf' ,
'/u01/app/oracle/oradata/TSEDMDB2/indx01.dbf' ,
'/u01/app/oracle/oradata/TSEDMDB2/odm01.dbf' ,
'/u01/app/oracle/oradata/TSEDMDB2/system01.dbf' ,
'/u01/app/oracle/oradata/TSEDMDB2/tools01.dbf' ,
'/u01/app/oracle/oradata/TSEDMDB2/undotbs01.dbf' ,
'/u01/app/oracle/oradata/TSEDMDB2/users01.dbf' ,
'/u01/app/oracle/oradata/TSEDMDB2/xdb01.dbf'
LOGFILE GROUP 1 ('/u01/app/oracle/oradata/TSEDMDB2/redo01.log') SIZE 102400K,
GROUP 2 ('/u01/app/oracle/oradata/TSEDMDB2/redo02.log') SIZE 102400K,
GROUP 3 ('/u01/app/oracle/oradata/TSEDMDB2/redo03.log') SIZE 102400K RESETLOGS
Sat Jan 3 03:31:25 2004
ORA-1503 signalled during: Create controlfile reuse set database TSEDMDB2
MAX...
Sat Jan 3 03:32:28 2004
Restarting dead background process QMN0
QMN0 started with pid=15
Sat Jan 3 03:32:28 2004
Shutting down instance (abort)
License high water mark = 3
Instance terminated by USER, pid = 47128
Diag trace file :
/u01/app/oracle/admin/TSEDMDB2/bdump/tsedmdb2_diag_49754.trc
Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP and Oracle Data Mining options
JServer Release 9.2.0.4.0 - Production
ORACLE_HOME = /u01/app/oracle/product/9.2.0
System name: AIX
Node name: prcsmbk1
Release: 3
Version: 4
Machine: 0002599F4C00
Instance name: TSEDMDB2
Redo thread mounted by this instance: 0 <none>
Oracle process number: 0
49754
Number of Serviceable Networks detected is less than 2
Disabling Transparent Network Failover Feature.
*** SESSION ID:(2.1) 2004-01-03 03:31:19.886
kjzcprt:rcv port created
kjzmreg2: slos err[1 19 [HA_GS_CONNECT_FAILED] sskgxn_gs_in 19]
[kjzmreg2]: Error [category=1] is encountered
Node monitor problem:[32700][kjzmreg2]
Membership is lost in DIAG group
Any help is appreciated. Thanks in advance.Thanks a lot for all your responses. We found the issue. The issue was that when we installed 9i we selected Enterprise option which installed RAC also. And after that when we were trying to create database Oracle was thinking that we are trying to create database in RAC env. and most likely it was trying to create/sync the control files on all the machines in the cluster.
The sequence of events were as below :
1. We have 8i installed on this machine
2. We installed 9i (9.2.0.1.0) using the same ORACLE_BASE but different ORACLE_HOME. We didn't select "Custom Install". We selected "Enterprise install" option
3. We installed new installer (2.2.0.18.0 ) and then 9i patch (9.2.0.4.0)
4. While creating the database (manually & through DBCA) we were getting ORA-32700
5. We tried to uninstall (using OUI 2.2.0.18.0) 9i (including the patch) completely but it never succeeded. We noticed that when we started uninstall it did show progress for about 20 minutes and after that it didn't show any progress. It was not taking any CPU cycles and It was not writing to the log file either. Basically we were never able to cleanly uninstall 9i. We tried almost 2 to 3 times.
6. Then we installed 9i using a new ORACLE_BASE and this time we selected "Custom Install" and we did not install RAC. This is successful
7. Then we installed new installer (2.2.0.18.0 ) and we tried to install the 9i patch (9.2.0.4.0) using this new installer but it never succeeded. Then we tried to install the 9i patch (9.2.0.4.0) using the old installer version (2.2.0.11.0) and it was also successful.
8. Then we tried to create database using DBCA and it was successful and then we dropped the database which was created using DBCA and then we created it manually through SQLPLUS and this was fine too.
So basically what we learned from this exercise is that if we are installing 9i on a machine which is part of a cluster and if we don't plan to setup RAC then we shouldn't install RAC and we should do a custom install. I wish there was a option in create database stmt to tell Oracle that though we are creating database on a machine which is part of a cluster environment but we don't intend to setup RAC.
And other thing which is still a mystery is that why does the uninstall never completes successfully. One question on this : We were using the installer version 2.2.0.18.0 to uninstall the 9i software. Do we need to use the older version (2.2.0.11.0) of the OUI? -
Hi,
Recently I faced the following errors (ORA-01501: CREATE DATABASE failed ORA-07202: sltln: invalid parameter to sltln) while creating DB. I installed software first (10.2.0.1) on Linux CentOS x86_64 x86_64 x86_64, then patched it with 10.2.0.4 and now I'm trying to create database. After reaching 3% it shows me these errors. Logs don't contain any associated messages or errors.
I'm loosing my marbles guessing what's wrong and how to cope with it.
Any help is very much appreciatedThis is a known bug 5046765.
Please use the below workaround
You use the DBCA "Custom Database" option and then go through all the screens. Along the way, you choose to use Oracle Managed Files with Multiplexing. At the end of the process you have the option to do one or up to three things, create the database, save the template, and create scripts.
If you choose to save the template and NOT create the database, then try to use that template in another DBCA session to create the database it fails with:
ORA-01501: CREATE DATABASE failed:
ORA-07207: sltln: invalid parameter to sltln
on Unix and it fails with:
ORA-01501: CREATE DATABASE failed:
ORA-09314: sltln: error translating logical name
on Windows.
Upon analyzing the template and the scripts, you look in the new init.ora file and you discover the line that makes the process fail:
control_files=""
In the scripts you saved, this line does not appear. When you create the database at the same time you save the template, this line does not appear. However, when you run the saved template in a new DBCA session for the purpose of creating the database, this line is added to the init.ora file and the process fails with the errors above. -
ORA 1031 while creating the repository - Urgent
Hi
I am trying to configure my Enterprise Management Server. I use the wizard and try to create a repository in an existing DB
instance. Everything looks fine and the wizard creates the new repository user. But while creating the tables it says
ORA 1031 insufficient priveleges.
i log into as SYS and sys has sysdba privileges. What is the problem? Please help.
Regards
Preety AgarwalQuote from the Oracle software licence terms and conditions:
-You are not a citizen, national, or resident of, and are not under control of, the government of Cuba, Iran, Sudan, Libya, North Korea, Syria, nor any country to which the United States has prohibited export.
-You will not download or otherwise export or re-export the Programs, directly or indirectly, to the above mentioned countries nor to citizens, nationals or residents of those countries. -
ORA-12560 while creating a database
Hi,
I tried to create a Oracle Database using Oracle installer.
I got the error ORA-12560
This is part of the logfile:
INFO: Configuration assistant "Oracle Net Configuration Assistant" succeeded
INFO: Command = oracle.assistants.server.DbcaCfgPlugIn C:\Windows\system32\cmd /c call E:\app\Administrator\product\11.1.0\db_1/bin/dbca.bat -progress_only -createDatabase -templateName General_Purpose.dbc -sid labor -gdbName labor.world -emConfiguration LOCAL -datafileJarLocation E:\app\Administrator\product\11.1.0\db_1\assistants\dbca\templates -datafileDestination E:\app\Administrator\oradata -responseFile NO_VALUE -characterset WE8MSWIN1252 -obfuscatedPasswords false -sampleSchema true -recoveryAreaDestination NO_VALUE -totalMemory 818 -automaticMemoryManagement true -maskPasswords false -sysPassword ${S_SYSPASS} -systemPassword ${S_SYSTEMPASS} -dbsnmpPassword ${S_DBSNMPPASS} -sysmanPassword ${S_SYSMANPASS} ${S_SYSASMPASS} ${S_HOSTUSERPASS}
Command = oracle.assistants.server.DbcaCfgPlugIn has failed
INFO: Configuration assistant "Oracle Database Configuration Assistant" failed
*** Starting OUICA ***
Oracle Home set to E:\app\Administrator\product\11.1.0\db_1
Configuration directory is set to E:\app\Administrator\product\11.1.0\db_1\cfgtoollogs. All xml files under the directory will be processed
INFO: The "E:\app\Administrator\product\11.1.0\db_1\cfgtoollogs\configToolFailedCommands" script contains all commands that failed, were skipped or were cancelled. This file may be used to run these configuration assistants outside of OUI. Note that you may have to update this script with passwords (if any) before executing the same.
INFO:
The Runconfig command constructed is E:\app\Administrator\product\11.1.0\db_1\oui\bin\runConfig.bat ORACLE_HOME=E:\app\Administrator\product\11.1.0\db_1 MODE=perform ACTION=configure RERUN=false $*
INFO: Since there is an Internal Plugin Invocation or a Java Plugin Invocation tool in the Oracle Home E:\app\Administrator\product\11.1.0\db_1 we use the runConfig Command instead of the plugin's command
INFO: Created a new file E:\app\Administrator\product\11.1.0\db_1\cfgtoollogs\configToolFailedCommands
INFO: Since the option is to overwrite the existing E:\app\Administrator\product\11.1.0\db_1\cfgtoollogs\configToolFailedCommands file, backing it up
INFO: The backed up file name is E:\app\Administrator\product\11.1.0\db_1\cfgtoollogs\configToolFailedCommands.bak
SEVERE: OUI-25031:Some of the configuration assistants failed/cancelled. It is strongly recommended that you retry the configuration assistants at this time. Not successfully running any "Recommended" assistants means your system will not be correctly configured.
1. Check the Details panel on the Configuration Assistant Screen to see the errors resulting in the failures.
2. Fix the errors causing these failures.
3. Select the failed assistants and click the 'Retry' button to retry them.
INFO: User Selected: Yes/OK
Can anybody help me
Operating system Windows Server 2008
A TNSNAMES.ORA was not created even if Oracle Net Config was successful (see above)
Regards
siegwiinHi,
Make sure that you point to the right path in ORACLE_HOME directory system variable.
If you already have one ORACLE COMPONENET RUNNING (SAY 10g SOA etc). Then we need to remove the path in the variable ORACLE_HOME and point to new oracle home path.
I had the similar issue it worked me. I hope it will work for you too as well.
-- Khaleel -
Recover Erased Files while creating partition
Hi all,
I recently divide external partition with Disk Utility. Without knowing that divide partition for external will erase all files, I lost my few hundred GBs files. For such a big files, it only take less than 3 min to create partition. Hence, I'm thinking will the files were kept somewhere temporary?
Hope to get your advice how i can recover my files. Really careless because thinking it will work like divide partition for mac drive without erase your files.
Thanks!The Hatter,
I have this files in one of my partition. Will these files help me in restore my files? Hope to get your advice, thanks! -
Error ORA-10980 while creating MV
SQL*Plus: Release 10.2.0.1.0 - Production on Thu Jun 21 11:43:02 2007
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
CREATE MATERIALIZED VIEW ebOrganizationStructure AS
SELECT DEPT.DeptStructureString Structure,
DEPT.DeptShortName DeptCode,
DEPT.DeptName DeptDesc,
NULL DivCode,
NULL DivDesc,
NULL GrpCode,
NULL GrpDesc,
NULL SecCode,
NULL SecDesc,
NULL SSecCode,
NULL SSecDesc
FROM erDepartment DEPT
UNION
SELECT DivStructureString Structure,
DEPT.DeptShortName DeptCode,
DEPT.DeptName DeptDesc,
DIV.DivShortName DivCode,
DIV.DivName DivDesc,
NULL GrpCode,
NULL GrpDesc,
NULL SecCode,
NULL SecDesc,
NULL SSecCode,
NULL SSecDesc
FROM erDepartment DEPT,
erDivision DIV ,
erOrgUnit_Orgunit OGU_OGU1
WHERE OGU_OGU1.OguEntId2 = DIV.EntId
AND OGU_OGU1.OguEntDomId2 = DIV.EntDomId
AND DEPT.EntId = OGU_OGU1.OguEntId1
AND DEPT.EntDomId = OGU_OGU1.OguEntDomId1
UNION
SELECT GRP.GrpStructureString Structure,
DEPT.DeptShortName DeptCode,
DEPT.DeptName DeptDesc,
DIV.DivShortName DivCode,
DIV.DivName DivDesc,
GRP.GrpShortName GrpCode,
GRP.GrpName GrpDesc,
NULL SecCode,
NULL SecDesc,
NULL SSecCode,
NULL SSecDesc
FROM erDepartment DEPT,
erDivision DIV ,
erGroup GRP,
erOrgUnit_Orgunit OGU_OGU1,
erOrgUnit_Orgunit OGU_OGU2
WHERE OGU_OGU1.OguEntId2 = GRP.EntId
AND OGU_OGU1.OguEntDomId2 = GRP.EntDomId
AND DIV.EntId = OGU_OGU1.OguEntId1
AND DIV.EntDomId = OGU_OGU1.OguEntDomId1
AND OGU_OGU2.OguEntId2 = DIV.EntId
AND OGU_OGU2.OguEntDomId2 = DIV.EntDomId
AND DEPT.EntId = OGU_OGU2.OguEntId1
AND DEPT.EntDomId = OGU_OGU2.OguEntDomId1
UNION
SELECT SEC.SecStructureString Structure,
DEPT.DeptShortName DeptCode,
DEPT.DeptName DeptDesc,
DIV.DivShortName DivCode,
DIV.DivName DivDesc,
GRP.GrpShortName GrpCode,
GRP.GrpName GrpDesc,
SEC.SecShortName SecCode,
SEC.SecName SecDesc,
NULL SSecCode,
NULL SSecDesc
FROM erDepartment DEPT,
erDivision DIV ,
erGroup GRP,
erSection SEC,
erOrgUnit_Orgunit OGU_OGU1,
erOrgUnit_Orgunit OGU_OGU2,
erOrgUnit_Orgunit OGU_OGU3
WHERE OGU_OGU1.OguEntId2 = SEC.EntId
AND OGU_OGU1.OguEntDomId2 = SEC.EntDomId
AND GRP.EntId = OGU_OGU1.OguEntId1
AND GRP.EntDomId = OGU_OGU1.OguEntDomId1
AND OGU_OGU2.OguEntId2 = GRP.EntId
AND OGU_OGU2.OguEntDomId2 = GRP.EntDomId
AND DIV.EntId = OGU_OGU2.OguEntId1
AND DIV.EntDomId = OGU_OGU2.OguEntDomId1
AND OGU_OGU3.OguEntId2 = DIV.EntId
AND OGU_OGU3.OguEntDomId2 = DIV.EntDomId
AND DEPT.EntId = OGU_OGU3.OguEntId1
AND DEPT.EntDomId = OGU_OGU3.OguEntDomId1
UNION
SELECT SSEC.SubSecStructureString Structure,
DEPT.DeptShortName DeptCode,
DEPT.DeptName DeptDesc,
DIV.DivShortName DivCode,
DIV.DivName DivDesc,
GRP.GrpShortName GrpCode,
GRP.GrpName GrpDesc,
SEC.SecShortName SecCode,
SEC.SecName SecDesc,
SSEC.SubSecShortName SSecCode,
SSEC.SubSecName SSecDesc
FROM erDepartment DEPT,
erDivision DIV ,
erGroup GRP,
erSection SEC,
erSubSection SSEC,
erOrgUnit_Orgunit OGU_OGU1,
erOrgUnit_Orgunit OGU_OGU2,
erOrgUnit_Orgunit OGU_OGU3,
erOrgUnit_Orgunit OGU_OGU4
WHERE OGU_OGU1.OguEntId2 = SSEC.EntId
AND OGU_OGU1.OguEntDomId2 = SSEC.EntDomId
AND SEC.EntId = OGU_OGU1.OguEntId1
AND SEC.EntDomId = OGU_OGU1.OguEntDomId1
AND OGU_OGU2.OguEntId2 = SEC.EntId
AND OGU_OGU2.OguEntDomId2 = SEC.EntDomId
AND GRP.EntId = OGU_OGU2.OguEntId1
AND GRP.EntDomId = OGU_OGU2.OguEntDomId1
AND OGU_OGU3.OguEntId2 = GRP.EntId
AND OGU_OGU3.OguEntDomId2 = GRP.EntDomId
AND DIV.EntId = OGU_OGU3.OguEntId1
AND DIV.EntDomId = OGU_OGU3.OguEntDomId1
AND OGU_OGU4.OguEntId2 = DIV.EntId
AND OGU_OGU4.OguEntDomId2 = DIV.EntDomId
AND DEPT.EntId = OGU_OGU4.OguEntId1
AND DEPT.EntDomId = OGU_OGU4.OguEntDomId1
Trace file showing error ORA-10980. MV hangs forever and never compiles. If I execute the query it comes up with correct results.
Thanks
RajeshI've seen MVs on 10g to be a bit tempermental. What happens if you build the MV but defer population and populate it as a second step?
-
Error while creating partition
Hi All,
I am trying to create a composite RANGE-LIST partition on a table.
I am trying to create a range partition on a insertdate column and a list subpartition on last 2 digits of a phone number. So, each partition should have 100 subpartition.
The syntax goes like this.
CREATE TABLE TEST_PART
Insertdate date,
phone_no number(10),
col1 varchar2(20),
col2 varchar2(20))
PARTITION BY RANGE (INSERTDATE)
SUBPARTITION BY LIST( (SUBSTR(PHONE_NO,-2))
SUBPARTITION template(
SUBPARTITION value00('00') ,
SUBPARTITION value01('01'),
SUBPARTITION value02('02'))
PARTITION P1 VALUES LESS THAN (TO_DATE(' 2006-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
PARTITION P2 VALUES LESS THAN (TO_DATE(' 2006-01-02 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
PARTITION P3 VALUES LESS THAN (TO_DATE(' 2006-01-03 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
But this is giving the following error:
ORA-00904: : invalid identifier
Can't I use SUBSTR here? Is there any way of doing partition ?
Thanks,
ReksAccording to the documentation, you can only use a column_name there. If you correct, this one, there are some more errors in your statment:
values keyword in the subpartition definitions
the partitions clause must be enclosed by parentheses
each partition clause must be separated by a comma.
The following statement is syntactically valid, but it is may be not what you want. Is it possible that you subpartition by hash? Why list subpartitioning? Is subpartitioning needed at all?
CREATE TABLE TEST_PART
Insertdate date,
phone_no varchar2(10),
col1 varchar2(20),
col2 varchar2(20))
PARTITION BY RANGE (INSERTDATE)
SUBPARTITION BY LIST( PHONE_NO )
SUBPARTITION template(
SUBPARTITION value00 values('00'), -- now this makes no sense anymore
SUBPARTITION value01 values('01'), -- now this makes no sense anymore
SUBPARTITION value02 values('02')) -- now this makes no sense anymore
PARTITION P1 VALUES LESS THAN (TO_DATE(' 2006-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
PARTITION P2 VALUES LESS THAN (TO_DATE(' 2006-01-02 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
PARTITION P3 VALUES LESS THAN (TO_DATE(' 2006-01-03 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
/ -
Error ora-12028 while creating a read-only snapshot
Hi !
I'm in trouble creating a read-only snapshot of a simple table.
The Master table belongs to an ORACLE 7.3.4 database instance, while the snapshot site belongs to an ORACLE 8.1 database. The read-only snapshot should have a refresh type FAST, but while I'm running the CREATE SNAPSHOT statement in the snapshot site I receive the following message:
"ORA-12028 snapshot type is not supported by master site string
Cause: Pre-Oracle master sites are not able to support primary key or
subquery snapshots that are able to perform a fast refresh.
Action: Create a ROWID snapshot or use a master table from an Oracle8 site. "
This message doesn't help me enough. Is there anyone who can give me an advice ?
Thanks you all.
LauraWell laura earlier version doesn't support snap shot based on primary key
u should disable primary key constraint from master site
and create snap shot on the basis of row id.
for further detail mail me at [email protected] -
ORA-30353 while creating summary folders
I have received the database error above while trying to create summary folders using the wizard within discoverer 4.1.37 at 2 different clients.
I have tried both manually specifying the items to include and letting Discoverer make recommendation based on performance statistics. I raised a TAR and was told that I had to exclude any items columns like UID, USER, ROWNUM, SYSDATE, CURRENT_TIMESTAMP, MAXVALUE from my folder. There may have been some of these at the first client as I was working with standard Oracle Apps tables, which use these extensively, but I am now at a second client, where I am trying to create a summary folder based on a complex folder made up of 7 items, the GL code combination ID and 6 segment values and their descriptions from fnd_flex_children. Even when I removed the code combination id from the summary, I still received the error.
Any thoughts or suggestions?HI Chinar,
I have already checke the same and made the changes as per the metalink note.
But stil I am getting teh following error:
$ lsnrctl status ASM
LSNRCTL for HPUX: Version 10.2.0.3.0 - Production on 30-JUL-2010 12:40:17
Copyright (c) 1991, 2006, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=10.10.199.141)(PORT=6881)))
STATUS of the LISTENER
Alias ASM
Version TNSLSNR for HPUX: Version 10.2.0.3.0 - Production
Start Date 30-JUL-2010 11:36:11
Uptime 0 days 1 hr. 4 min. 5 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /uat06/asm_home/network/admin/listener.ora
Listener Log File /uat06/asm_home/network/log/asm.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.10.199.141)(PORT=6881)))
Services Summary...
Service "+ASM" has 1 instance(s).
Instance "ASM", status BLOCKED, has 1 handler(s) for this service...
Service "+ASM_XPT" has 1 instance(s).
Instance "ASM", status BLOCKED, has 1 handler(s) for this service...
Service "ASM" has 1 instance(s).
Instance "ASM", status UNKNOWN, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
Why is it showing status "BLOCKED" if i check the listener status. -
ORA-01591 and ORA-00054 while creating index
Hi guys,
there is a situation that I didnt understand.
I have table and want to create an index on it but when I try to create an index I got one of
ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired
or
ORA-01591: lock held by in-doubt distributed transaction 11.13.689049 errors.
as I know there is and .net application which has connection pooling and while this web services were active, I can not create index.
first thing that i did is querying V$LOCK table and i saw some TM locks from time to time and sometimes nothing. when there wasn't any locks on the table I try to create index, system wait for a while (1 minutes approximately) then I got "ORA-01591: lock held by in-doubt distributed ..." error again. (even "Application" wait event occured. in enterprise manager I saw a few red sql command which is waiting for my create index command)
after a quick search, I use PENDING_TRANS$ and PENDING_SESSIONS$ tables to force rollback to the transaction which is indicated on ORA-01591 error but just after I rollback that transaction, a new one come up every time.
today I use something else. First I locked table manually in EXCLUSIVE mode (and success it). then I try to create index again, command worked for a while and I got ORA-01591 error again.
any idea why is this happining and how can i create my index ?sybrand_b,
when i run
Lock Table MyTable in exclusive mode;command, it succeeded. I can lock the table if you mean that or if you are saying even if that command runs very well, because of in doubt transaction, oracle will take the lock back, that could be. but as i said lock table command succeeded.
and there is an another situation here, there is no any other database ? I mean, how could an in doubt transaction happen. there are dblinks but they do not even query that table.
there is just something that i dont know. as i said in my first message, a .net application is running on an aplication server, as far as i know there connection pooling etc on that server. is this can cause that kind of in doubt transaction ?
PS: every time in ora-01591 error, I got the same transaction id and that transaction id is not in dba_2pc_pending or pending_session$ etc. that might help.
Edited by: Mustafa KALAYCI on 17.Şub.2012 13:48 -
ORA-12523 while creating a database on ASM using DBCA
HI PPL,
I have set up am ASM instance and also configured the listener services to it.
But when I try to create database on the configured ASM instance using DBCA , I am getting the following error
TNS:listener could not find instance appropriate
for the client connection
The Connection descriptor used by the client was:
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP(Host=10.10.199.141)
(Port=6881))(CONNECT_DATA=(SERVICE_NAME++ASM1)
(INSTANCE_NAME=+ASM1)(UR=A)))
I have checked the listener status and ASM instance and booth seem to be fine:
$ lsnrctl status ASM
LSNRCTL for HPUX: Version 10.2.0.3.0 - Production on 30-JUL-2010 12:40:17
Copyright (c) 1991, 2006, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=10.10.199.141)(PORT=6881)))
STATUS of the LISTENER
Alias ASM
Version TNSLSNR for HPUX: Version 10.2.0.3.0 - Production
Start Date 30-JUL-2010 11:36:11
Uptime 0 days 1 hr. 4 min. 5 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /uat06/asm_home/network/admin/listener.ora
Listener Log File /uat06/asm_home/network/log/asm.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.10.199.141)(PORT=6881)))
Services Summary...
Service "+ASM" has 1 instance(s).
Instance "ASM", status BLOCKED, has 1 handler(s) for this service...
Service "+ASM_XPT" has 1 instance(s).
Instance "ASM", status BLOCKED, has 1 handler(s) for this service...
Service "ASM" has 1 instance(s).
Instance "ASM", status UNKNOWN, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
SQL> sho parameter local
NAME TYPE VALUE
local_listener string ASM
log_archive_local_first boolean TRUE
Please help as I am new to ASM.
OS-HP-UX
Database;10gR2
regardsHI Chinar,
I have already checke the same and made the changes as per the metalink note.
But stil I am getting teh following error:
$ lsnrctl status ASM
LSNRCTL for HPUX: Version 10.2.0.3.0 - Production on 30-JUL-2010 12:40:17
Copyright (c) 1991, 2006, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=10.10.199.141)(PORT=6881)))
STATUS of the LISTENER
Alias ASM
Version TNSLSNR for HPUX: Version 10.2.0.3.0 - Production
Start Date 30-JUL-2010 11:36:11
Uptime 0 days 1 hr. 4 min. 5 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /uat06/asm_home/network/admin/listener.ora
Listener Log File /uat06/asm_home/network/log/asm.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.10.199.141)(PORT=6881)))
Services Summary...
Service "+ASM" has 1 instance(s).
Instance "ASM", status BLOCKED, has 1 handler(s) for this service...
Service "+ASM_XPT" has 1 instance(s).
Instance "ASM", status BLOCKED, has 1 handler(s) for this service...
Service "ASM" has 1 instance(s).
Instance "ASM", status UNKNOWN, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
Why is it showing status "BLOCKED" if i check the listener status. -
Error: ORA-02298 while creating a new app at DRM 11.1.2.3.300
Hi All,
There's something weird happening when I try to create a new DRM app at DRM Management Console. After provide all information about database connection and admin long on i am getting the following error during the repository creation :
Creating Repository ... Done.
Creating Tables ... Done.
Creating Views ... Done.
Creating Stored Procedures ... Done.
Creating Indexes ... Done.
Creating Primary Keys ... Done.
Initializing schema with predefined data ...
Database creation failed with this error: ORA-02298: cannot validate (EPM_DRM_DB.FK_CATUSER02) - parent keys not found
It is a fresh install and I don't know why I am having this error. Did someone had this issue too ? How to solve that ?
Thanks in advance...To whom it may concern.....
This issue was related to privileges in database. I've generated the scripts and ran with system user and it worked.
Case closed.
Maybe you are looking for
-
Hi I cant start jackd in realtime mode (with a bare kernel26). the output from Qjackctl is: JACK is running in realtime mode, but you are not allowed to use realtime scheduling. After applying these changes, please re-login in order for them to take
-
10.1.0.4 on SLES 9 SP1 ora-03113
Hello, SLES9 SP1 is on PIII with two 800MHz procesors and 2GB RAM, on four SATA 156GBhard disks are created two RAID1 arays, on one RAID is OS with 1GB swap and Oracle 10.1.0.4 enterprise edition, on second RAID are two raw partitions each 70GB ....
-
hi Guys i wrote a bean for the database connection. In my bean i use the class[b] Product for creating the instance .Code goes like this ResultSet rs = s.executeQuery(sql); while (rs.next()) Product product = new Product(); product.id = rs.getInt(1);
-
Advantages and disadvantages of wrapper classes
Hi , will you please let me know what are the advantages and disadvantages of wrapper classes. please do needful ASAP. thanks in advance
-
91% capacity at 14 cycles?
Hello, I have had my MacBook Pro for exactly one month and haven't used it for more than a few hours per day. Before I even purchased the Mac I read the battery care instruction and have been following them, but installed coconutBattery the other day