Spatial: create index gets ORA-22060: argument [2] is an invalid number
Hi,
I'm trying to create a spatial index on an SDO_GEOMETRY column in 10gR2, but getting the following error:
CREATE INDEX GR_TEST_ADDRP_SIDX ON GR_TEST
(ADDRESS_POINT)
INDEXTYPE IS MDSYS.SPATIAL_INDEX
ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
ORA-22060: argument [2] is an invalid or uninitialized number
ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 10Any pointers to what I should be looking for here?
Found solution to my problem. When inserting to USER_SDO_GEOM_METADATA I copied insert statement from existing metadata and insert statement had NULLs in the 3rd and 4th dimension. Took those out and now index creates okay.
Similar Messages
-
I am trying to download a blob from a database table and I am getting ORA-21560: argument 3 is null, invalid, or out of range
this is my code:
PROCEDURE retrieve_document (p_pk_id in varchar2)
IS
size1 integer;
blob1 BLOB ;
tmpblob BLOB;
l_mimetype varchar2(4000);
BEGIN
BEGIN
insert into temp_document
select pk_id,document_file,mime_type
from portal_documents
where pk_id = p_pk_id;
select document_file, mime_type
into blob1, l_mimetype
from temp_document;
--insert into temp_stu_pic select student_id, student_picture from stu_pics
where student_id = 'CHS321';
--select student_picture into blob1 from temp_stu_pic where student_id = 'CHS321';
EXCEPTION when no_data_found then null;
END;
size1 := dbms_lob.getlength(blob1);
dbms_lob.createtemporary(tmpblob,true);
dbms_lob.copy(tmpblob,blob1,size1,1,1);
owa_util.mime_header(l_mimetype, false,null);
htp.p('Content-length: '|| size1);
htp.p('Pragma: no-cache');
htp.p('Cache-Control: no-cache');
htp.p('Expires: Thu, 01 Jan 1970 12:00:00
GMT');
owa_util.http_header_close;
wpg_docload.download_file(tmpblob);
dbms_lob.freetemporary(tmpblob);
END retrieve_document;
Anybody know why I would be getting this error?In the future, use the PRE and /PRE tags, enclosed in [] to format your code.
You have commented out some code, and left other portions.
If you're actually getting an error when running (which i would guess you are based on the thread title) then show us the copy / paste of the error message which shows line numbers, etc...
PROCEDURE retrieve_document (p_pk_id in varchar2)
IS
size1 integer;
blob1 BLOB ;
tmpblob BLOB;
l_mimetype varchar2(4000);
BEGIN
BEGIN
insert into temp_document
select pk_id,document_file,mime_type
from portal_documents
where pk_id = p_pk_id;
select document_file, mime_type
into blob1, l_mimetype
from temp_document;
--insert into temp_stu_pic select student_id, student_picture from stu_pics
where student_id = 'CHS321';
--select student_picture into blob1 from temp_stu_pic where student_id = 'CHS321';
EXCEPTION when no_data_found then null;
END;
size1 := dbms_lob.getlength(blob1);
dbms_lob.createtemporary(tmpblob,true);
dbms_lob.copy(tmpblob,blob1,size1,1,1);
owa_util.mime_header(l_mimetype, false,null);
htp.p('Content-length: '|| size1);
htp.p('Pragma: no-cache');
htp.p('Cache-Control: no-cache');
htp.p('Expires: Thu, 01 Jan 1970 12:00:00
GMT');
owa_util.http_header_close;
wpg_docload.download_file(tmpblob);
dbms_lob.freetemporary(tmpblob);
END retrieve_document;Message was edited by:
Tubby -
UPDATE...RETURNING...INTO: ORA-24369 and ORA-22060
Hello,
array binding with "UPDATE...RETURNING...INTO :outArray" does not work for me as expected:
1. When the UPDATE does not update any row, then command.executeNonQuery() throws exception ORA-22060 (argument [{0}] is an invalid or uninitialized number).
2. When the number of rows updated does not equal the length of the input arrays (fewer or more rows), then executeNonQuery() throws exception ORA-24369 (required callbacks not registered for one or more bind handles).
Has anybody used the RETURNING...INTO clause successfully with array binding?
Thanks,
Armin
Public Function BulkUpdateNoteReturnArray() As Integer
Dim rowCount As Integer
Dim sqlStmt As String
Dim command As New OracleCommand
command.BindByName = True
'Arrays
Dim versions() As Integer = {1, 1, 1}
Dim userIds() As Decimal = {101, 102, 103}
Dim noteTexts() As String = {"Updated Note1 " & Now(), _
"Updated Note2 " & Now(), _
"Updated Note3 " & Now()}
'Returned array
Dim outArrayName As String = "noteId"
sqlStmt = "UPDATE SGNote " _
+ " SET NoteText = :noteText " _
+ " WHERE UserIdentity = :userId " _
+ " AND Version = :version " _
+ " RETURNING Identity INTO :noteId "
'Add parameter arrays
Dim noteTextsParam As New OracleParameter("noteText", OracleDbType.Varchar2)
noteTextsParam.Direction = ParameterDirection.Input
noteTextsParam.Value = noteTexts
command.Parameters.Add(noteTextsParam)
Dim userIdsParam As New OracleParameter("userId", OracleDbType.Decimal)
userIdsParam.Direction = ParameterDirection.Input
userIdsParam.Value = userIds
command.Parameters.Add(userIdsParam)
Dim versionsParam As New OracleParameter("version", OracleDbType.Int32)
versionsParam.Direction = ParameterDirection.Input
versionsParam.Value = versions
command.Parameters.Add(versionsParam)
Dim noteIdsParam As New OracleParameter(outArrayName, OracleDbType.Decimal)
noteIdsParam.Direction = ParameterDirection.Output
command.Parameters.Add(noteIdsParam)
command.ArrayBindCount = versions.Length
command.CommandText = sqlStmt
command.CommandType = CommandType.Text
Dim connection As OracleConnection
connection = New OracleConnection("Pooling=False;User ID=ARSI;Password=ARSI;Data Source=EXIGO1;")
command.Connection = connection
command.Connection.Open()
command.ExecuteNonQuery()
'"ORA-24369: required callbacks not registered for one or more bind handles"
Dim outParameter As OracleParameter
'OracleDecimal[] newSalary = (OracleDecimal[])newSal.Value;
' Dim valuesPtr As Decimal()
' Dim valuesArray() As Decimal
' Dim objectPtr As Object()
outParameter = command.Parameters(outArrayName)
' 'valuesPtr = CType(outParameter.Value, Decimal())
' 'valuesArray = CType(outParameter.Value, Decimal())
' objectPtr = CType(outParameter.Value, Object())
rowCount = outParameter.ArrayBindStatus.Length 'valuesArray.Length
command.Connection.Close()
command.Connection.Dispose()
command.Dispose()
Return rowCount
End FunctionHi,
As just said it perfectly correct.
Point to know about RETURNING CLAUSE
1. Only DML Statement that returns single row results can use RETURNING CLAUSE.
2. Returning value must match the type of the Return variable.
create or replace procedure samplsql2
(VarEmpno IN varchar2,
VarSalPercentage IN Number,
UpdatedSalary OUT Number)
is
sql_stmt varchar2(2000);
BEGIN
/* Making a Dynamic Sql Statement for Oracle version 8.1.7 onwards */
sql_stmt := 'UPDATE Scott.emp
SET sal = (sal+ sal * :a)
where empno = :b
RETURNING sal
INTO :c';
/* Executing a Dynamic SQL for Oracle Version 8.1.7 onwards */
EXECUTE IMMEDIATE sql_stmt USING VarSalPercentage,VarEmpno RETURNING INTO UpdatedSalary;
/* You can use this way als0
EXECUTE IMMEDIATE sql_stmt USING VarSalPercentage,VarEmpno,OUT UpdatedSalary; */
END;
- Pavan Kumar N
show errors -
Getting error while creating index in RAC environment in 11g
Hi All,
I am new to RAC concept while creating index getting below error
Error: AX_DISABLE_HIST - SQL Error. Error Position: 0
Return: 12801 - ORA-12801: error signaled in parallel query server P146, instance
ORA-12853: insufficient memory for PX buffers: current 425904K,
max needed 11105280K ORA-04031: unable to allocate 32792 bytes of shared memory ("shared pool","unknow
CREATE UNIQUE iNDEX PS_AX_DISABLE_HIST ON PS_AX_DISABLE_HIST (EMPLID) TABLESPACE PSINDEX STORAGE
(INITIAL 40000 NEXT 65536 MAXEXTENTS UNLIMITED PCTINCREASE 0) PCTFREE 10 PARALLEL NOLOGGING
am not able to understanding is this issue is related to index or sga memory. can any once help me on this.
Thanks in advance
Prabhakar
Edited by: 889571 on May 16, 2013 7:41 AMHi,
Please read the below link for ORA-04031 (Insufficient Memory).
http://blog.tanelpoder.com/2009/06/04/ora-04031-errors-and-monitoring-shared-pool-subpool-memory-utilization-with-sgastatxsql/
Thanks -
ORA-30496: Argument Should Be A Constant
Hi,
I am getting ORA-30496: Argument Should Be A Constant message while modifying length of Char datatype from Char(1) to Char(2). I do not get this message if i modify the length of Varchar2 datatype. I have set CURSOR_SHARING=SIMILAR in init.ora file and when i change it's value to EXACT then i do not get the above mentioned error.
Any Idea.sounds like a bug in the db. Not an OEM issue.
-
Why do i get ORA-03113 when doing a spatial query against union all view?
Hi, i created the following view
CREATE OR REPLACE FORCE VIEW cola_markets_v
AS
(SELECT mkt_id, NAME, shape shape_a, NULL shape_b, NULL shape_c,
NULL shape_d
FROM COLA_MARKETS
WHERE NAME = 'cola_a')
UNION ALL
(SELECT mkt_id, NAME, NULL shape_a, shape shape_b, NULL shape_c,
NULL shape_d
FROM COLA_MARKETS
WHERE NAME = 'cola_b')
UNION ALL
(SELECT mkt_id, NAME, NULL shape_a, NULL shape_b, shape shape_c,
NULL shape_d
FROM COLA_MARKETS
WHERE NAME = 'cola_c')
UNION ALL
(SELECT mkt_id, NAME, NULL shape_a, NULL shape_b, NULL shape_c,
shape shape_d
FROM COLA_MARKETS
WHERE NAME = 'cola_d');added the necessary entries in USER_SDO_GEOM_METADATA and created a spatial index on COLA_MARKETS (SHAPE). However, when i do a spatial query against this view, i get ORA-03113. A spatial query against the base table works fine. Any ideas why this happens? (This is Oracle 10.2.0.3.0)
Thanks in advance, Markus
PS: This is my spatial query
SELECT *
FROM cola_markets_v t
WHERE sdo_filter (t.shape_a,
SDO_GEOMETRY (2003,
NULL,
NULL,
sdo_elem_info_array (1, 1003, 3),
sdo_ordinate_array (1, 1, 2, 2)
'querytype=window'
) = 'TRUE';Thank you for your reply. I have tried it with 11.1.0.6.0 today and it works. This might be an issue with 10.2.0.3.0.
-
Spatial query index creation fails with ORA-13282: failure on initializatio
Hi,
I have an Oracle 10g 10.2.0.5.0 database newly installed. Spatial index creation fails:
ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
ORA-13282: failure on initialization of coordinate transformation
ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 10
The script I am trying to run is:
Insert into USER_SDO_GEOM_METADATA
(TABLE_NAME, COLUMN_NAME, DIMINFO, SRID)
Values
('SOME_TABLE', 'geo',
"SDO_DIM_ARRAY"(
"SDO_DIM_ELEMENT"('X',600000,900000,0.001),
"SDO_DIM_ELEMENT"('Y',150000,400000,0.001)), 23700);
CREATE INDEX IX_GEO_SOME_TABLE ON SOME_TABLE (GEO) INDEXTYPE IS MDSYS.SPATIAL_INDEX ;
Earlier I had some issues with NLS settings in relation to Spatial, but in this particular case setting the NLS_LANG for AMERICAN_AMERICA does not help. I found this comment http://www.orafaq.com/forum/t/127312/2/ but would not like to hack around with MDSYS table content. Any help is highly appreciated.
Regards, TamasTamas,
1 . . .Are you indexing a table that already has geometries or an empty table?
. . . .If the former, do all the geometries in that table have the same (not NULL) SRID (23700)?
2 . .The link you posted suggests a parsing problem since in Hungarian (23700), the decimal seperator is a comma (not a period). Accordingly, I believe the edit to mdsys.sdo_cs_srs.WKTEXT would be:
PROJCS["HD72 / EOV", GEOGCS [ "HD72", DATUM ["Hungarian Datum 1972 (EPSG ID 6237)", SPHEROID ["GRS 1967 (EPSG ID 7036)", 6378160, 298,247167427]], PRIMEM [ "Greenwich", 0,000000 ], UNIT ["Decimal Degree", 0,01745329251994328]], PROJECTION ["Egyseges Orszagos Vetuleti (EPSG OP 19931)"], UNIT ["Meter", 1]]
^ ^ ^ Regards,
Noel -
ORA-12805: parallel query server died unexpectedly while create index?
Hi,
I create a index like below, getting erro like ORA-12805: parallel query server died unexpectedly ,
any idea?
db version: 9.2.0.6
platform: sun 9
CREATE INDEX "HSTRY"."F_PRMM_LDGR_TG_MNTHLY_IDX1" ON "F_PRMM_LDGR_TG_MNTHLY" ("CDD_TRNSCTN_SBHDR_UID" , "CNTRCT_LYR_PRTCPNT_UID" , "CDD_FNNCL_ELMNT_TYPE_CD" ) PCTFREE 10 INITRANS 2 MAXTRANS 255 TABLESPACE "RPT_FCPTB" NOLOGGING PARALLEL ( DEGREE DEFAULT INSTANCES DEFAULT) LOCAL(PARTITION "BKNG_PRD_PRE_200904" PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 4194304 FREELISTS 1 FREELIST GROUPS 1) TABLESPACE "RPT_FCPTB" NOLOGGING, PARTITION "BKNG_PRD_200904" PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 4194304 FREELISTS 1 FREELIST GROUPS 1) TABLESPACE "RPT_FCPTB" NOLOGGING, PARTITION "BKNG_PRD_200905" PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 4194304 FREELISTS 1 FREELIST GROUPS 1) TABLESPACE "RPT_FCPTB" NOLOGGING, PARTITION "BKNG_PRD_200906" PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 4194304 FREELISTS 1 FREELIST GROUPS 1) TABLESPACE "RPT_FCPTB" NOLOGGING, PARTITION "BKNG_PRD_200907" PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 4194304 FREELISTS 1 FREELIST GROUPS 1) TABLESPACE "RPT_FCPTB" NOLOGGING, PARTITION "BKNG_PRD_200908" PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 4194304 FREELISTS 1 FREELIST GROUPS 1) TABLESPACE "RPT_FCPTB" NOLOGGING, PARTITION "BKNG_PRD_200909" PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 4194304 FREELISTS 1 FREELIST GROUPS 1) TABLESPACE "RPT_FCPTB" NOLOGGING, PARTITION "BKNG_PRD_200910" PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 4194304 FREELISTS 1 FREELIST GROUPS 1) TABLESPACE "RPT_FCPTB" NOLOGGING, PARTITION "BKNG_PRD_200911" PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 4194304 FREELISTS 1 FREELIST GROUPS 1) TABLESPACE "RPT_FCPTB" NOLOGGING, PARTITION "BKNG_PRD_200912" PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 4194304 FREELISTS 1 FREELIST GROUPS 1) TABLESPACE "RPT_FCPTB" NOLOGGING, PARTITION "BKNG_PRD_201001" PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 4194304 FREELISTS 1 FREELIST GROUPS 1) TABLESPACE "RPT_FCPTB" NOLOGGING, PARTITION "BKNG_PRD_201002" PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 4194304 FREELISTS 1 FREELIST GROUPS 1) TABLESPACE "RPT_FCPTB" NOLOGGING, PARTITION "BKNG_PRD_201003" PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 4194304 FREELISTS 1 FREELIST GROUPS 1) TABLESPACE "RPT_FCPTB" NOLOGGING, PARTITION "BKNG_PRD_DEFAULT" PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 4194304 FREELISTS 1 FREELIST GROUPS 1) TABLESPACE "RPT_FCPTB" NOLOGGING ) ;
Thanks
Jerry
Edited by: jerrygreat on Jun 25, 2009 8:03 AM
Edited by: jerrygreat on Jun 25, 2009 8:19 AMThe alert.log is like below, seems no enough temp tablespace?? thx
Errors in file /qia1/tech/oracle/admin/hrdr/bdump/hrdr_p000_7052.trc:
ORA-01114: IO error writing block to file 208 (block # 59005)
ORA-27063: skgfospo: number of bytes read/written is incorrect
Additional information: 75776
Additional information: 245760
ORA-01114: IO error writing block to file 208 (block # 59005)
ORA-27063: skgfospo: number of bytes read/written is incorrect
Additional information: 75776
Additional information: 245760
ORA-01114: IO error writing block to file 208 (block # 59005)
ORA-27063: skgfospo: number of bytes read/written is incorrect
Additional information: 75776
Additional information: 245760 -
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? -
ORA-04031 while creating index
Hi,
I am creating a schema using IMP utility.
The import log is showing error (during index creation)
ORA-04031: unable to allocate 2064 bytes of shared memory ("shared pool","unknown object","sga heap","multiblock rea")
This is a Oracle 8 (8.1.7.4.0) database. Exports were taken from Oracle 7 and are being imported into Oracle 8.
Please guide me. I have never worked in such older versions. Below are some details
SQL> select * from v$sgastat;
POOL NAME BYTES
fixed_sga 73888
db_block_buffers 4505600
log_buffer 66560
shared pool free memory 2120444
shared pool miscellaneous 494960
shared pool PLS non-lib hp 2096
shared pool KGFF heap 61212
shared pool KGK heap 4248
shared pool KQLS heap 425692
shared pool trigger inform 120
shared pool Checkpoint queue 28944
POOL NAME BYTES
shared pool latch nowait fails or sle 37632
shared pool kcb where/why stats array 29376
shared pool message pool freequeue 124552
shared pool sessions 366520
shared pool transactions 166804
shared pool State objects 188224
shared pool branches 45120
shared pool simulator trace entries 80000
shared pool enqueue_resources 34200
shared pool long op statistics array 74800
shared pool PL/SQL DIANA 525652
POOL NAME BYTES
shared pool db_files 36272
shared pool ktlbk state objects 80036
shared pool dictionary cache 711268
shared pool table columns 17148
shared pool java static objs 30560
shared pool PL/SQL MPCODE 90204
shared pool fixed allocation callback 1920
shared pool library cache 1128364
shared pool db_handles 75000
shared pool sql area 2040852
shared pool db_block_buffers 74800
POOL NAME BYTES
shared pool processes 119400
shared pool SYSTEM PARAMETERS 63604
shared pool transaction_branches 33856
shared pool event statistics per sess 590240
java pool free memory 20000768
Please guide.
Regards,
SIDHi SID;
Please see below notes:
Diagnosing and Resolving Error ORA-04031 on the Shared Pool or Other Memory Pools [Video] [ID 146599.1]
OERR: ORA 4031 "unable to allocate %s bytes of shared memory ("%s","%s","%s")" [ID 4031.1]
Regard
Helios -
Err while creating Index - ORA-29855: ,ORA-20000
Got err while creating index. We moved the Table to new tablespace and drop the index. While creating index got this err. Col1 is clob datatype.
SQL> CREATE INDEX kc_ctx_RAWTEXT ON RAWTEXT
2 (col1)
3 INDEXTYPE IS CTXSYS.CONTEXT
4 PARALLEL ;
CREATE INDEX KC_CTX_RAWTEXT ON RAWTEXT
ERROR at line 1:
ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
ORA-20000: Oracle Text error:
DRG-50857: oracle error in drvddl.ParallelIndexPopulate
ORA-12801: error signaled in parallel query server P020
ORA-20000: Oracle Text error:
ORA-06512: at "CTXSYS.DRUE", line 160
ORA-06512: at "CTXSYS.DRVPARX", line 36
ORA-06512: at "CTXSYS.DRUE", line 160
ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 364remove parallel clause and try again
-
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-01450 when trying to create index on xmltype column
Hi,
I have a table that contains an xmltype column. It is a schema-based column and uses object-relational structured storage. When I tried to create an index like:
create index ssual_sipuser_idx on ssua_line (extractValue(ssual_configuration, '/ssuaLineApplication/sipUser'));
I got the following:
ORA-01450: maximum key length (3118) exceeded
The sipUser tag is of string type. I have also tried creating the index on the extract function.
create index ssual_sipuser_idx on ssua_line (ssual_configuration.extract('/ssuaLineApplication/sipUser/text()').getStringVal())
Gave me the same error message. My database block size is 4k. This is Oracle 9.2.0.4 running on Solaris.
Any help will be appreciated.
Thanks,
GloriaThanks for the reply, Coby.
My field is really small, probably around 10 bytes. Actually I've been testing on two servers, a 9201 and a 9204. I know that Oracle doesn't support XML DB on 9201 anymore but our company hasn't switched over yet. Anyways, here's really what I saw:
9201
- creating an index with extractValue() or extract() doesn't work
9204
- extractValue() works
- extract() still doesn't work
Now I'm using the substr() workaround. I should also mention that extractValue() with a numeric field works (using getNumberVal()).
I wonder if specifying the field length in the XML Schema would make a difference. I may try that next. -
Creating index ,im getting this error
hi ,
while im creating index ,im getting this error:
Index could not be created; creating index failed: Invalid entry in configuration: section nameserver, key address, value tcpip://<nameserverhost>:<nameserverport> is invalid (Errorcode 7213)
can you pls help me ?
Regard,
prasad D.Hi Prasad,
Please see the TREX Configuration doc [TREX Configuration|http://help.sap.com/saphelp_nw70/helpdata/en/a9/4a6642161d0f53e10000000a155106/frameset.htm]
you can check the all the TREX server status in System Administration ->Monitoring ->TREX Monitor .
Naga -
ORA-19025: EXTRACTVALUE returns value of only one nod- When creating index
Hi,
My table have 2 columns . Columns are
Key varchar2(50)
Attribute XMLType
Below is my sample XML which is stored in Attribute column.
<resource>
<lang>
<lc>FRE</lc>
<lc>ARA</lc>
</lang>
<site>
<sp>257204</sp>
<sp>3664</sp>
</site>
<page>
<pp>64272714</pp>
<pp>64031775</pp>
<pp>256635</pp>
</page>
<key>
<kt>1</kt>
</key>
</resource>
When i try to create a index on XML column and i am getting the above exception. kindly help me out becz i'm not familar with oracle.
Query is
create index XMLTest_ind on language_resource_wrapper
(extractValue(attribute, '/resource/site/sp') )
index on sp,pp elements in the above XML.Thanks for the suggestion...
The problem is that in one row, information in a data dump about two different things was combined into one, due to a gap in the input file. The starting delimiter for the second thing and the ending delimiter for the first were missing. The result was that many entity tags that should have been unique were duplicated, ion that particular row.
I was able to guard the view against future such errors with occurrences using this
in the WHERE clause ...
AND NOT ( XMLCLOB LIKE '%<TAG1>%<TAG1>%'
OR XMLCLOB LIKE '%<TAG2>%<TAG2>%'
OR XMLCLOB LIKE '%<TAG3>%<TAG3>%'
/* ... Repeated once for each tag used with extractvalue */
OR XMLCLOB LIKE '%<TAGN>%<TAGN>%'
It filters out any row with two identical starting tags, where one is expected.
I am pleased to see that the suggestion got through.
Maybe you are looking for
-
WRT54G3G-ST: Signal Strength "meter" broken?
I am running a WRT54G3G-ST using the 2.00.9 firmware on Sprint with a Novatel Merlin S720. I think that the signal strength meter does not actually work properly: a. I can be connected just fine and have it display "No Signal" b. Other than "No Signa
-
Trinidad Myfaces - selectManyShuttle - initially selected items?
Hi, In selectManyShuttle, how can I display initially selected items. In backing bean, how should I handle it? Thanks in advance, Srihari
-
Hi! I often read about the new major release NW 7.2 including AS ABAP & Java with Portal, there are also already many hints about new features in Weblogs and statements of SAP employees. But whenever somebody is asking for concrete detail, these sour
-
Safari crashes instantly and does not even load. Please help.
Process: Safari [527] Path: /Applications/Safari.app/Contents/MacOS/Safari Identifier: com.apple.Safari Version: 6.0.5 (7536.30.1) Build Info: WebBrowser-7536030001000000~1 Code Type: X86-64 (Native) Parent
-
Call Labview generated EXE with Parameters
Hi I have generated an exe in a Lab project(bcos of the no of VIs = 300) I want to call this EXE in Teststand with Parameters how to achive this mytry1) as executable but the cluster outs cant be exported to teststand mytry2) as a dll