Error ORA battery 1 555 have I need to worry?
Hi DBAs,
Today morning I received a warning as below:
ORA-error of the stack (1 555) saved in /db_logs/admin/zeus/bdump/alert_zeus2.log
and the content of the journal is:
Sun 08 Jun 01:48:58 IST 2014
ORA-01555 caused by the following SQL statement (SQL ID: 5tm5tghm9zgy0, query term s = 103367, SNA: 0x0aee.93eed439):
Sun 08 Jun 01:48:58 IST 2014
SELECT THE ROWID IN APP_EVE_AUD WHERE PK_SGDATA_ID IS NULL
I googled about this error and found that its related to cancel retention, as my DB is on 10.2.0.5 version undo management is automatic so do I need to worry about this error?
I'm just curious, because the DB is in a Production environment.
Kind regards
Ritu
The error is reported by the query:
> SELECT ROWID FROM APP_EVE_AUD WHERE PK_SGDATA_ID IS NULL
What is the table (in terms of bytes and lines)? How long does this query takes to run? How many rows it returns? The frequency at which it runs?
Is the updated table (inserts, updates, deletes) to a very high rate when the query is running?
Is there a way you can avoid this query or part of the application that executes this query?
The error message indicates that the duration of the query was 103, 367seconds who is 28.7 hours. There were bugs in older versions of the 10.2.0.x the length of query reported was incorrect. Therefore, it is best to run the query yourself and check.
Hemant K Collette
Tags: Database
Similar Questions
-
Region report on apex 4.1 upgrade page get the error ORA-01790
Hi all
We have recently upgraded from 3.1.2 to 4.1. One of the pages in several regions, one being a region of report. It has a simple sql statement:
Select
"RU_TD_ID,"
"RU_TH_ID,"
"LOC"
"DEPT"
'ACCOUNT ',.
"SUB."
"SPRT."
"DETAIL_DESC,"
"SERVICE_PERIOD,"
"DETAIL_AMT,"
"FULL_ACCT_STRING,"
'DATE_ADD ',.
"USER_ADD."
"DATE_UPD,"
'USER_UPD '.
of ' #OWNER # '. " RU_TRANS_DTL ".
where "RU_TH_ID" =: P26_RU_TH_ID
: p26_ru_th_id is entered in a header after process... I can see this field filled in other parts of the page and you can see in the URL to this page... http://sea-ax0038.davita.com:7777 / pls/fintest_apex/f? p = 130:26:6483666979470721:NO:P26_RU_TH_ID:13745
I have active debugging and it comes back with the following:
0.00227 0,18859 region: details of payment 4
review of the salon 0.00358 0,19093 4
0.00086 0,19451 determine the 4 column headers
0.00288 0,19527 enable sorting 4
0.00112 0,19818 analyze the query like: FINAPPS 4
0,19928-0.00121... Execute the statement: select NULL NULL "CHECK$ 01", 'RU_TD_ID': 'P14_RU_TH_ID' 'RU_TH_ID', NULL, 'FULL_ACCT_STRING', NULL, 'DETAIL_AMT', NULL, 'DETAIL_DESC', NULL, 'SERVICE_PERIOD', NULL, 'LOC', NULL, 'DEPT', NULL, 'ACCT', NULL, 'SUB', NULL "SPRT,' NULL 'DATE_ADD', NULL"USER_ADD', NULL, 'DATE_UPD', NULL, 'USER_UPD' of the union select double all ' CHECK$ 01 ","RU_TD_ID" , 'RU_TH_ID', 'FULL_ACCT_STRING', 'DETAIL_AMT', 'DETAIL_DESC', 'SERVICE_PERIOD', "LOC", "DEPT", 'ACCOUNT', "SUB", "SPRT", 'DATE_ADD', "USER_ADD", 'DATE_UPD', 'USER_UPD' of (select NULL "CHECK$ 01", "RU_TD_ID", "RU_TH_ID", "LOC", "DEPT", 'ACCT', "SUB", "SPRT", 'DETAIL_DESC', 'SERVICE_PERIOD', 'DETAIL_AMT', 'FULL_ACCT_STRING', 'DATE_ADD', "USER_ADD", 'DATE_UPD', 'USER_UPD' from (select 'RU_TD_ID' 'RU_TH_ID' ') , "LOC", "DEPT", "ACCOUNT", "SUB", "SPRT', 'DETAIL_DESC', 'SERVICE_PERIOD', 'DETAIL_AMT', 'FULL_ACCT_STRING', 'DATE_ADD', 'USER_ADD', 'DATE_UPD', 'USER_UPD' to 'FINAPPS '. ((' "RU_TRANS_DTL" where "RU_TH_ID" =: P26_RU_TH_ID) APEX$ RPTSRC order by 2 nulls first) 4
0,20053 0.00653 rename mentioned link "P14_RU_TH_ID" to "p$ _quoted_bind_1 ' 4
0,20706 0.00094 report error: ORA-01790: expression must have the same data type as the corresponding expression 4
The only thing that jumps, is where there the line "Rename city bind...". "I have no idea why is the reference 'P14_RU_TH_ID' in the select clause... it is P26 and was called from P11. In fact I do not understand why the whole of the union everything is generated wit the first part all the field of execept P14_RU_TH_ID NULL.
The other two regions on the page fill/processusent without problem.
Any help would be appreciated. We have improved the production 4.1 over the weekend and users missed test this feature and it is 'critical' (of course).
Thank you
Kristina
Published by: Kristina on February 13, 2012 21:01Hi Kristina,
in fact, you should see a search box with the value 'Translational research' at the top right. When you click this field, the text will disappear and you can type in your search criteria. Press on [Enter] to run your search.
Concerning
Patrick
-----------
My Blog: http://www.inside-oracle-apex.com
APEX Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf -
My battery status shows the service battery. I have reset the alert status about 6 months ago, but he will not be reset again. Thinking I need a new battery Apple!
Batteries are no longer available on the Apple online store but can be at your nearest Apple Retail Store, you must check with your store. A better option is probably buy one yourself and replace it. Buy a quality like this http://eshop.macsales.com/shop/apple_laptop/batteries/MacBook_13_Unibody battery
Avoid imitations cheap as those who are sold on auction sites.
-
I get this error several times when I use Lightroom. "Lightroom encountered and error while reading its preview cache and needs to stop smoking" tells me to remove the preview folder.
I have LIghtroom 3 catalog Previews.Irdata; should I remove all three files?
LAR
Simply remove the Previews.LRDATA folder that bears the name in the catalog file, you are trying to open.
-
Hi, when I download Adobe Creative cloud I open it and then a message pops up saying '... Error code 204 ", what I have done, or do I need to do to make it installs successfully.
Walegena37827201 see error download and installation of the creative cloud application for more information on how to resolve the error 204. If you have any questions about the steps listed in the document, we invite you to update this discussion.
-
Have a problem with Lightroom 5.4. Given that the program crashed yesterday, will not start, it comes up with the message "Lightroom has encountered an error when reading the preview cache and need to quit." "Lightroom will attempt to solve this problem, the next time he throws." Except that it isn't, I get the same message and the program closes. Anyone know what I can do to fix it? Can not backup, can't do anything.
There are dozens of discussions in this forum that describe the fix
-
Error ORA-00313 ORA-00312 ORA-27037 pending journal
Hi all
11 GR 2
Rhel6.5
I checked my log alerts in Reserve, and I see this error:
Errors in the /home/orauat/UAT/11.2.0/admin/UAT_drdb/diag/rdbms/uat2/UAT/trace/UAT_rfs_22227.trc file:
ORA-00313: open failed for the members of the newspaper group 5 of the thread 0
ORA-00312: threads of journal online 5 0: ' / home/orauat/UAT/data/srl03.clearing'
ORA-27037: unable to get file status
Linux-x86_64 error: 2: no such file or directory
Additional information: 3
Help, please...
Thank you very much
JC
Hello
ORA-00313 ORA-00312 ORA-27037
Errors in the /home/orauat/UAT/11.2.0/admin/UAT_drdb/diag/rdbms/uat2/UAT/trace/UAT_rfs_22227.trc file:
ORA-00313: open failed for the members of the newspaper group 5 of the thread 0
ORA-00312: threads of journal online 5 0: ' / home/orauat/UAT/data/srl03.clearing'
ORA-27037: unable to get file status
Linux-x86_64 error: 2: no such file or directory
Additional information: 3
These errors is usually when you have information to controlfile and the file is not physically present.
You can make the foollwoing out of this problem.
Go to primary:
==============
Select the bytes of the log v$.
< note="" bytes="">
In standby mode, follow these steps:
============================
SQL > alter system set standby_file_management = manual;
SQL > alter database recover managed standby dadtabase cancel;
SQL > select * v log$;
SQL > select group # from v$ standby_log;
Note all groups the query "v$ standby_log ' and drop them.
alter database drop logfile 10 group;
example: you get as below. then
SQL > select group # from v$ standby_log;
GROUP #.
----------
10
11
12
13
You will need to file 10,11,12 and 13
Once dumped, check that nothing exists in "select group # from v$ standby_log;
Create now your redologfile Eve,
alter database add standby logfile group 10'<>' size 52428800. ---> use your desired location and size copied from the primary database (bytes)
We always recommend, N + 1 mode sleep, we have to redo logfiles, where N is the number of redo log file online in the primary database (each thread).
Once you create minimum 1 standb redo log file, you drop and create online redo log files
Once you fill in for standby and online redo log file, then
SQL > alter system set standby_file_management = AUTO;
SQL > alter database recover managed standby dadtabase disconnect;
All the way, you will need to maintain log_file_name_convert with appropriate values.
NOTE: If you encounter any problem during a fall redo log mode standby, you may need to disappear before the fall.
QL > change the database group claire logfile 3;
Database altered.
SQL > alter database drop logfile Group 3;
Database altered.
If you have access, you can check the doc below:
Manipulation of the ORL and SRL (Resize) primary and physical mode ensures environmental Dataguard (Doc ID 1532566.1)
Thank you
-
Dear all,
While making the cloning of RMAN using the command duplicate in 11.2.0.3 database with ebs.
We receive the error below
connected to the auxiliary database (not started)
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failure of Db in dual at 03/07/2015 15:12:07
RMAN-06403: could not get a fully authorized session
RMAN-04006: auxiliary database error: ORA-24327: need explicit attach befor
e a user authentication
RMAN-03015: an error has occurred in the script stored memory Script
RMAN-04014: failed to start: ORA-03113: end of file on communication channel
RMAN-04017: description of the startup error: ORA-32004: outdated or obsolete parameters
ER (s) specified for the instance of RDBMS
Kind regards
Villi Kumar
Dear all,
We have corrected the problems.
Solution:
To the bottom of the database
Comment this parameter and re try
=====================================
oratest@ctsst $ grep-i local initerptest.ora
#local_listener = erptest_LOCAL
oratest@ctsst $
Test the issue again.
Concerning
Villi Kumar
-
SQL error: ORA-31038: invalid number '420,05' when extracting data from XML
Hello everyone ,
J’ai créé dietingDBMS_XMLSCHEMA. REGISTERSCHEMA (SCHEMAURL = > 'OrdenDetalle.xsd', SCHEMADOC = > ' <? xml version = "1.0" encoding = "UTF?) 8 "? >
" < xs: schema xmlns: XS =" http://www.w3.org/2001/XMLSchema ">
< xs: element name = "Monsigniore" >
< xs: complexType >
< xs: SEQUENCE >
< xs: element name = "Quantity" type = "Integer" / >
< xs: element name = "FechaCreacion" type = "xs: DateTime" / >
< xs: element name = "Version" type = "xs: String" / >
< xs: ELEMENT ref = "News" / >
< / xs: SEQUENCE >
< / xs: complexType >
< / xs: element >
< xs: element name = "News" >
< xs: complexType >
< xs: Choice >
< xs: element name = "OrdenCompra" type = "T_OrdenCompra" / >
< / xs: Choice >
< / xs: complexType >
< / xs: element >
< name XS: complexType = "T_OrdenCompra" >
< xs: SEQUENCE >
< xs: element name = "Code" type = "xs: String" / >
< xs: element name = "Number" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CodigoEstado" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CodigoLicitacion" type = "xs: String" nillable = "true" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Description" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CodigoTipo" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Type" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "TipoMoneda" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "State" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CodigoEstadoProveedor" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "EstadoProveedor" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: ELEMENT ref = "Fechas" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "TieneItems" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "PromedioCalificacion" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CantidadEvaluacion" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Well" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Freighters" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "TotalNeto" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "PorcentajeIva" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Impuestos" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Total" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Financing" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Country" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "TipoDespacho" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "FormaPago" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: ELEMENT ref = "Comprador" minOccurs = "0" maxOccurs = "1" / >
< xs: ELEMENT ref = "Proveedor" minOccurs = "0" maxOccurs = "1" / >
< xs: ELEMENT ref = "Items" minOccurs = "0" maxOccurs = "1" / >
< / xs: SEQUENCE >
< / xs: complexType >
< xs: element name = "Items" >
< xs: complexType >
< xs: SEQUENCE >
< xs: element name = "Quantity" type = "Integer" / >
< xs: element name = "News" >
< xs: complexType >
< xs: SEQUENCE >
< xs: ELEMENT ref = "Item" minOccurs = "0" maxOccurs = "unbounded" / >
< / xs: SEQUENCE >
< / xs: complexType >
< / xs: element >
< / xs: SEQUENCE >
< / xs: complexType >
< / xs: element >
< name XS: complexType = "OrdenCompraBusqueda" >
< xs:complexContent >
< xs:extension base = "T_OrdenCompra" >
< / xs:extension >
< / xs:complexContent >
< / xs: complexType >
< xs: element name = "Item" >
< xs: complexType >
< xs: SEQUENCE >
< xs: element name = "Correlativo" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CodigoCategoria" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Category" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CodigoProducto" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Product" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "EspecificacionComprador" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "EspecificacionProveedor" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Quantity" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Moneda" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
"< xs: element name ="PrecioNeto"type ="XS: Decimal"minOccurs ="0"maxOccurs ="1"/ >
< xs: element name = "TotalCargos" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "TotalDescuentos" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "TotalImpuestos" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Total" type = "xs: Decimal" minOccurs = "0" maxOccurs = "1" / >
< / xs: SEQUENCE >
< / xs: complexType >
< / xs: element >
< xs: element name = "Fechas" >
< xs: complexType >
< xs: SEQUENCE >
< xs: element name = "FechaCreacion" type = "xs: DateTime" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "FechaEnvio" type = xs: DateTime "" nillable = "true" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "FechaAceptacion" type = xs: DateTime "" nillable = "true" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "FechaCancelacion" type = xs: DateTime "" nillable = "true" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "FechaUltimaModificacion" type = xs: DateTime "" nillable = "true" minOccurs = "0" maxOccurs = "1" / >
< / xs: SEQUENCE >
< / xs: complexType >
< / xs: element >
< xs: element name = "Comprador" >
< xs: complexType >
< xs: SEQUENCE >
< xs: element name = "CodigoOrganismo" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "NombreOrganismo" type = "xs: String" nillable = "true" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "RutUnidad" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CodigoUnidad" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "NombreUnidad" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Activity" type = "xs: String" nillable = "true" / >
< xs: element name = "DireccionUnidad" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "ComunaUnidad" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "RegionUnidad" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Country" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "NombreContacto" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CargoContacto" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "FonoContacto" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "MailContacto" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< / xs: SEQUENCE >
< / xs: complexType >
< / xs: element >
< xs: element name = "Proveedor" >
< xs: complexType >
< xs: SEQUENCE >
< xs: element name = "Code" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Number" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Activity" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CodigoSucursal" type = "Integer" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "NombreSucursal" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "RutSucursal" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Address" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Comuna" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Region" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "Country" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "NombreContacto" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "CargoContacto" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "FonoContacto" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< xs: element name = "MailContacto" type = "xs: String" minOccurs = "0" maxOccurs = "1" / >
< / xs: SEQUENCE >
< / xs: complexType >
< / xs: element >
< / xs: Schema >
', LOCAL = > true, GENTYPES = > false, GENBEAN = > false, GENTABLES = > false,
FORCE = > false, OPTIONS = > DBMS_XMLSCHEMA. REGISTER_BINARYXML, OWNER = > USER);
I have a table with one xml domain.
CREATE TABLE XML_Orden_Detalle (Fecha_GET date default current_date not null,
Fecha_Ordenes number not null,
Correlativo_Ordenes number not null,
Codigo_Orden varchar2 (20) not not null primary key,
Cant_Item,
Date of InicioProceso,
Date of FinProceso,
Xmltype Orden_Detalle not null)
Orden_Detalle XMLTYPE COLUMN
STORE AS BINARY XML
XMLSCHEMA " " http://xmlns.Oracle.com/xdb/schemas/CCS_XML/OrdenDetalle.xsd "" "
ELEMENT "command";
I inserted data like that, without any Errors:" < Command containing = ' http://www.w3.org/2001/XMLSchema "" xmlns: xsi = " " http://www.w3.org/2001/XMLSchema-instance ">
< Number > 1 < / quantity >
< FechaCreacion > 2015-05-28T 12: 10:26.947000 < / FechaCreacion >
v1 < version > < / Version >
< Return >
< OrdenCompra xsi: type = "OrdenCompraBusqueda" >
3879-2661-SE14 < code > < / code >
< Number > PSP DAEM 2014. COFFEE BREAK PARA FRINGE OP21838 < / number >
< CodigoEstado > 6 < / CodigoEstado >
3902 5-on 14 < CodigoLicitacion > < / CodigoLicitacion >
< Description > PSP DAEM 2014. COFFEE BREAK PARA FRINGE OP21838 < / description >
< CodigoTipo > 8 < / CodigoTipo >
< Type > SE < / Type >
< TipoMoneda > CLP < / TipoMoneda >
Is < State > < / Estado >
< CodigoEstadoProveedor > 4 < / CodigoEstadoProveedor >
Is < EstadoProveedor > < / EstadoProveedor >
< Fechas >
< FechaCreacion > 2014-12-29T 17: 43:32.287000 < / FechaCreacion >
< FechaEnvio > 2014-12-31T 10: 32:35.480000 < / FechaEnvio >
< FechaAceptacion > 2015 - 01-01 T 21: 03:03.660000 < / FechaAceptacion >
< FechaCancelacion xsi: Nil = "true" / >
< FechaUltimaModificacion > 2014-12-29T 17: 51:00.000000 < / FechaUltimaModificacion >
< / Fechas >
< TieneItems > 1 < / TieneItems >
< PromedioCalificacion > 5 < / PromedioCalificacion >
< CantidadEvaluacion > 1 < / CantidadEvaluacion >
< Well > 0 < / well >
cargo <>0 < / cargo >
< TotalNeto > 53782 < / TotalNeto >
< PorcentajeIva > 19 < / PorcentajeIva >
< Impuestos > 10218 < / Impuestos >
< total > 64000 < / Total >
< Financing > 1140569 < / financing >
< Country > CL < / Pais >
< TipoDespacho > 12 < / TipoDespacho >
< FormaPago > 2 < / FormaPago >
< comprador >
< CodigoOrganismo > 118069 < / CodigoOrganismo >
< NombreOrganismo > Ilustre municipalidad of Bulnes < / NombreOrganismo >
< RutUnidad > 69.141.200 - 8 < / RutUnidad >
< CodigoUnidad > 4799 < / CodigoUnidad >
Daem < NombreUnidad > < / NombreUnidad >
< Actividad / >
< DireccionUnidad > VICTOR BIANCHI Nº415 < / DireccionUnidad >
Bulnes < ComunaUnidad > < / ComunaUnidad >
< RegionUnidad > Region del Biobio < / RegionUnidad >
< Country > CL < / Pais >
Antonella Brunetti < NombreContacto > < / NombreContacto >
Adquisiciones < CargoContacto > < / CargoContacto >
< FonoContacto > 56-42-2204053-2204054 < / FonoContacto >
< MailContacto > [email protected] < / MailContacto >
< / comprador >
< Proveedor >
< Code > 275020 < / code >
Luis < number > < / number >
< Activity > MANUFACTURING OF PAN, BLOCK PANADERIA Y PRODUCTOS < / activity >
< CodigoSucursal > 280820 < / CodigoSucursal >
Luis < NombreSucursal > < / NombreSucursal >
< RutSucursal > 5.940.940 - 9 < / RutSucursal >
< Address > Carlos Palacios 125 < / address >
Bulnes < Comuna > < / Comuna >
Region del Biobio < region > < / region >
< Country > CL < / Pais >
< NombreContacto > Luis Leonardo Valdés Landero < / NombreContacto >
Gerente < CargoContacto > < / CargoContacto >
< FonoContacto > (56) (42) 631498 < /FonoContacto >
< MailContacto > [email protected] < / MailContacto >
< / Proveedor >
elements <>
< Quantity > 7 < / quantity >
< Return >
< item >
< Correlativo > 1 < / Correlativo >
< CodigoCategoria > 30222700 < / CodigoCategoria >
< Category > items para estructuras, obras y construcciones / permanent Construcciones / industriales Construcciones < / categories >
< CodigoProducto > 30222703 < / CodigoProducto >
< product > ALMACEN Mercancias < / product >
< EspecificacionComprador > 3 LITROS BEBIDAS < / EspecificacionComprador >
< EspecificacionProveedor / >
< Number > 10 < / quantity >
< Moneda > CLP < / Moneda >
< PrecioNeto > 1550 < / PrecioNeto >
< TotalCargos > 0 < / TotalCargos >
< TotalDescuentos > 0 < / TotalDescuentos >
< TotalImpuestos > 0 < / TotalImpuestos >
< total > 15500 < / Total >
< / point >
< item >
< Correlativo > 2 < / Correlativo >
< CodigoCategoria > 30222700 < / CodigoCategoria >
< Category > items para estructuras, obras y construcciones / permanent Construcciones / industriales Construcciones < / categories >
< CodigoProducto > 30222703 < / CodigoProducto >
< product > ALMACEN Mercancias < / product >
< EspecificacionComprador > DEEMED OF 1 1/2 LITYROS < / EspecificacionComprador >
< EspecificacionProveedor / >
< Number > 10 < / quantity >
< Moneda > CLP < / Moneda >
< PrecioNeto > 1150 < / PrecioNeto >
< TotalCargos > 0 < / TotalCargos >
< TotalDescuentos > 0 < / TotalDescuentos >
< TotalImpuestos > 0 < / TotalImpuestos >
< total > 11500 < / Total >
< / point >
< item >
< Correlativo > 3 < / Correlativo >
< CodigoCategoria > 30222700 < / CodigoCategoria >
< Category > items para estructuras, obras y construcciones / permanent Construcciones / industriales Construcciones < / categories >
< CodigoProducto > 30222703 < / CodigoProducto >
< product > ALMACEN Mercancias < / product >
< EspecificacionComprador > PACKAGES SERVILLETAS < / EspecificacionComprador >
< EspecificacionProveedor / >
< Number > 8 < / quantity >
< Moneda > CLP < / Moneda >
< PrecioNeto > 170 < / PrecioNeto >
< TotalCargos > 0 < / TotalCargos >
< TotalDescuentos > 0 < / TotalDescuentos >
< TotalImpuestos > 0 < / TotalImpuestos >
< total > 1360 < / Total >
< / point >
< item >
< Correlativo > 4 < / Correlativo >
< CodigoCategoria > 30222700 < / CodigoCategoria >
< Category > items para estructuras, obras y construcciones / permanent Construcciones / industriales Construcciones < / categories >
< CodigoProducto > 30222703 < / CodigoProducto >
< product > ALMACEN Mercancias < / product >
< EspecificacionComprador > pounds OF AZÚCAR < / EspecificacionComprador >
< EspecificacionProveedor / >
< Number > 5 < / quantity >
< Moneda > CLP < / Moneda >
< PrecioNeto > 580 < / PrecioNeto >
< TotalCargos > 0 < / TotalCargos >
< TotalDescuentos > 0 < / TotalDescuentos >
< TotalImpuestos > 0 < / TotalImpuestos >
< total > 2900 < / Total >
< / point >
< item >
< Correlativo > 5 < / Correlativo >
< CodigoCategoria > 30222700 < / CodigoCategoria >
< Category > items para estructuras, obras y construcciones / permanent Construcciones / industriales Construcciones < / categories >
< CodigoProducto > 30222703 < / CodigoProducto >
< product > ALMACEN Mercancias < / product >
< EspecificacionComprador > NESCAFE < / EspecificacionComprador >
< EspecificacionProveedor / >
< Number > 2 < / quantity >
< Moneda > CLP < / Moneda >
< PrecioNeto > 3900 < / PrecioNeto >
< TotalCargos > 0 < / TotalCargos >
< TotalDescuentos > 0 < / TotalDescuentos >
< TotalImpuestos > 0 < / TotalImpuestos >
< total > 7800 < / Total >
< / point >
< item >
< Correlativo > 6 < / Correlativo >
< CodigoCategoria > 30222700 < / CodigoCategoria >
< Category > items para estructuras, obras y construcciones / permanent Construcciones / industriales Construcciones < / categories >
< CodigoProducto > 30222703 < / CodigoProducto >
< product > ALMACEN Mercancias < / product >
< EspecificacionComprador > CAJAS OF TE 20 BOWL < / EspecificacionComprador >
< EspecificacionProveedor / >
< Number > 5 < / quantity >
< Moneda > CLP < / Moneda >
< PrecioNeto > 340 < / PrecioNeto >
< TotalCargos > 0 < / TotalCargos >
< TotalDescuentos > 0 < / TotalDescuentos >
< TotalImpuestos > 0 < / TotalImpuestos >
< total > 1700 < / Total >
< / point >
< item >
< Correlativo > 7 < / Correlativo >
< CodigoCategoria > 30222700 < / CodigoCategoria >
< Category > items para estructuras, obras y construcciones / permanent Construcciones / industriales Construcciones < / categories >
< CodigoProducto > 30222703 < / CodigoProducto >
< product > ALMACEN Mercancias < / product >
TRITON GALLETAS < EspecificacionComprador > < / EspecificacionComprador >
< EspecificacionProveedor / >
< Number > 31 < / quantity >
< Moneda > CLP < / Moneda >
< PrecioNeto >420,05< / PrecioNeto >
< TotalCargos > 0 < / TotalCargos >
< TotalDescuentos > 0 < / TotalDescuentos >
< TotalImpuestos > 0 < / TotalImpuestos >
< total > 13021,550000000001 < / Total >
< / point >
< / News >
< / object >
< / OrdenCompra >
< / News >
< / Monsigniore >
However when I extract data, for example:
Select *.
from xmltable (to_char (' / Monsigniore/news/OrdenCompra/Items/News/Item[1] ''))
passage (select Orden_Detalle
of xml_Orden_Detalle
where Fecha_Ordenes = 20150101 and Correlativo_ordenes = 83)
path of columns Correlativo varchar2 (15) 'Correlativo '.
, Path of varchar2 (15) CodigoCategoria 'CodigoCategoria '.
, Path Categoria Varchar2 (100 CHAR) "category.
, Path of varchar2 (15) CodigoProducto 'CodigoProducto '.
, Path of Producto Varchar2 (100 CHAR) 'product '.
, Path of the EspecificacionComprador Varchar2 (100 CHAR) "EspecificacionComprador".
, Path of the EspecificacionProveedor Varchar2 (100 CHAR) "EspecificacionProveedor".
, Amount varchar2 (15) path 'amount '.
, Path of the Moneda Varchar2 (16 CHAR) "Moneda".
, Path of varchar2 (15) PrecioNeto 'PrecioNeto '.
, Path of varchar2 (15) TotalCargos 'TotalCargos '.
, Path of varchar2 (15) TotalDescuentos 'TotalDescuentos '.
, Path of varchar2 (15) TotalImpuestos 'TotalImpuestos '.
, Path of varchar2 (15) total 'Total '.
);
delivery the following error:
Informed of error:
SQL error: ORA-31038: Valor number no valido: "420,05."
«31038 00000 - "value not valid %s: \"%s\»»
* Cause: The text in the XML document does not represent a valid
value given the data type and other constraints in the schema.
* Action: Make sure the value specified in the XML documents is valid
regarding the data type and other constraints in the schema.
Note that extract le agenda [1] but the reported error is à la point [7]
Please If anyone can Help me with le solution for no report error
Thank you very much in advanceCarlosin Chile, the decimal point are ', 'no'.', the xml data table is OK for us
You do not understand.
Regardless of the locale, numeric values limited by a type of data XS: Decimal must use a point in a correct XML representation, otherwise, the document is not valid by the XSD.
(3) TO_CHAR (...) the code is part of a procedure
Again, do NOT build a dynamic path like that.
Why not just move through the records returned by the query (if you need close at all)?
FOR rec in)
SELECT x.*
From your_table t
XMLTABLE (...) x
)
LOOP
END LOOP;
What is the role of the v_CantItems variable? Paging?
Whence its value?
-
Error ORA-01400 creation policy in AV 12 c
Hello
I have configured the host, the agent, collectors everything is ok and works, but when I try to create a strategy of the VA gives me this error:
ORA-01400: cannot insert NULL into ('AVSYS". "" "" AUDIT_SETTING_ARCHIVE_MAP '. "" ARCHIVE_ID')
ANY IDEA? NO MATTER WHAT SETTING I NEED TO CHECK FIRST?
THNKS FOR MORE INFORMATION!
Hello.!!
thnks... !!
Yes, I opened a SR and the response was the question in the note, so then oracle created the note:
Creating a strategy for auditing in 12 c AVDVF fails with error ORA-01400 (Doc ID 1680878.1)
-
Error ORA-16724: could not resolve the deficit for one or more databases in waiting
I came to work today with the following error is displayed:
February 5, 2014 01:27:19 error ORA-16778: make the mistake of transport for one or more databases.
Looks like this error disappeared but now I have the following error:
February 5, 2014 11:52:40 error ORA-16724: could not resolve the deficit for one or more databases in waiting
I did some research on the forums and I think I need backup and restore, but I'm not sure.
Here are some questions that I saw others asking in the forums:
PRIMARY:
Select max(sequence#) from v$ archived_log; -24589
Select current_scn in the database of v$. -871568619
SECONDARY:
Select max(sequence#) from v$ archived_log; -24589
Select max(sequence#) from v$ archived_log in case of application = 'YES '; -24562
Select current_scn in the database of v$. -870987797
Select * from v$ archive_gap;
Thread # Low_Sequence # High_Sequence #.
1 24563 24563
Looks like everything is working, but the error is still appearing in OEM primer.
The issue ended up being with the control file. I followed of many blog posts on how to roll forward the database before and they all said to restore the control file before you recover the database. I followed this paper: http://docs.oracle.com/cd/B28359_01/server.111/b28294/rman.htm#CIHIAADC and it worked as expected. The old control file has had 6 data files that were in a different place than the others. The new control file, I created the primary had all the files of data in one place. After correcting the control to point to the locations correct datafile all started working again.
-
Hello
We conduct apply CM which is a failure with the Error: "declared:java.sql.SQLException: ORA-01555: snapshot too old: rollback segment number with the name '' too small'."
Its in our unique the production instance. I checked on the return parameter. Here are the details.
SQL > show Cancel parameter
VALUE OF TYPE NAME
------------------------------------ ----------- ------------------------------
_in_memory_undo Boolean TRUE
_undo_debug_usage integer 2
UNDO_MANAGEMENT string AUTO
UNDO_RETENTION integer 40000
undo_tablespace string APPS_UNDOTS1
SQL > select max (maxquerylen) of v$ undostat;
MAX (MAXQUERYLEN)
----------------
637116
Please suggest what needs to be done to go further.
Kind regards
Prabhat.
Post edited by: 942633
Hello
ORA-02067: the rollback transaction or registration required
As mentioned, you will need to look at the design of the code:
Error: ORA 2067
Text: rollback transaction or registration required
-------------------------------------------------------------------------------
Cause: A failure (typically a trigger or a stored procedure with several updates remotely) has occurred, such as the execution of all or nothing from a previous call to Oracle cannot be guaranteed.
Action: return to a previous point of backup or restore the transaction and resubmit.------
ORA-01555 caused by the following SQL statement (SQL ID: 5y0q4u8r2hdy9, query term s = 637608, SCN: 0x0bcc.4ed82762):
------
ACTUAL SIZE [MB] UNDO UNDO RETENTION [s] NECESSARY UNDO SIZE [MB]
------------------------ ------------------------------------------------------------------------- ------------------------
304849 40000 267232.292
To better help you, please let us know:
-What is the function of this program.
-Did you recently parameter changes until you have this error.
Please ensure that the validation controls are implemented correctly, the DBA team and development will work hand in hand.
Thank you &
Best regards
-
ERROR: ORA-01017: name of user and password invalid. connection refused
Hi all
I need your help.
I have installed Oracle Audit Vault Server Release 10.2.3.2 in agent collection and Linux system in Windows system. Adding and start collecting DBAUD went fine however adding AGAIN collector back return errors when executing command avorcldb add_collector as follows
[oracle@avsrv ~] $
[oracle@avsrv ~] $ avorcldb add_collector - SrcName orcl nom_agent - avagent01 - colltype REDO - av Lugaopc:1521:orcl
collector REDO_Collector for orcl source already exists
the initialization of the REDO Collector
ERROR: could not get by using jdbc connection AV source user:oracle:oci:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=Lugaopc)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=orcl)))
ERROR: ORA-01017: name of user and password invalid. connection refused
[oracle@avsrv ~] $
Here are the contents of the avorcldb.log file
09/09/13 16:58:44 [INFO] command add_collector treatment
09/09/13 16:58:44 [INFO] treatment arg - FromName = orcl
09/09/13 16:58:44 [INFO] treatment arg - nom_agent = avagent01
09/09/13 16:58:44 [INFO] treatment arg - colltype = REDO
09/09/13 16:58:44 [INFO] treatment arg - av = Lugaopc:1521:orcl
09/09/13 16:58:44 [INFO] connect information: Lugaopc:1521:orcl
09/09/13 16:58:45 [INFO] connecting administration AV got using jdbc:oracle:oci:@AVDB
09/09/13 16:58:45 [INFO] execution SQL like [ADM@AV] select s.host |': ' | A1.num_value |': ' | avsys.av A2.char_value $attrvalue a1, a2 avsys.av$ attrvalue, avsys.av$ s source, avsys.av$ attrdef ad1, ad2 avsys.av$ attrdef where source_name =: 1 and a1.inst_id = s.source_id and a2.inst_id = s.source_id and a1.attr_id = ad1.attr_id and ad1.attr_name = 'PORT' and a2.attr_id = ad2.attr_id and ad2.attr_name = 'DB_SERVICE. '
09/09/13 16:58:45 [INFO] using bind value orcl
09/09/13 16:58:45 [INFO] Return value = Lugaopc:1521:orcl
09/09/13 16:58:45 [INFO] connect information: Lugaopc:1521:orcl
09/09/13 16:58:45 [INFO] execution SQL like [ADM@AV] select to_char (source_id) in the avsys.av$ source where source_name =: 1
09/09/13 16:58:45 [INFO] using bind value orcl
09/09/13 16:58:45 [INFO] return value = 1
09/09/13 16:58:46 [INFO] got the source user connection using jdbc:oracle:oci:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=Lugaopc)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=orcl)))
09/09/13 16:58:46 [INFO] executing SQL in [ADM@AV] select decode (c.status, 1, 'active', 0, 'fallen', null) of avsys.av$ collector c, avsys.av$ s source where source_name =: 1 and collector_name =: 2 and c.source_id = s.source_id
09/09/13 16:58:46 [INFO] using bind value orcl
09/09/13 16:58:46 [INFO] bind Using REDO_Collector value
09/09/13 16:58:46 [INFO] Return value = active
09/09/13 16:58:46 [MESG] collector REDO_Collector for orcl source already exists
09/09/13 16:58:46 [INFO] executing SQL in [ADM@AV] select decode (c.status, 1, 'active', 0, 'fallen', null) of avsys.av$ collector c, avsys.av$ s source where source_name =: 1 and collector_name =: 2 and c.source_id = s.source_id
09/09/13 16:58:46 [INFO] using bind value orcl
09/09/13 16:58:46 [INFO] bind Using REDO_Collector value
09/09/13 16:58:46 [INFO] Return value = active
09/09/13 16:58:46 [MESG] initialization REDO Collector
09/09/13 16:58:46 [INFO] execution SQL like [ADM@AV] select the username of avsys.av$ source where source_name =: 1
09/09/13 16:58:46 [INFO] using bind value orcl
09/09/13 16:58:46 [INFO] Return value = AVSRCUSR1
09/09/13 16:58:46 [INFO] as [ADM@AV] SQL execution {? = call avsys.dbms_audit_vault.reset_source_user (?)}
09/09/13 16:58:46 [INFO] adding user password mask
09/09/13 16:58:46 [INFO] execution SQL like [USR@SRC] select table_name from user_tables where upper (table_name) = upper(:1)
09/09/13 16:58:46 [INFO] bind Using STREAMS_HEARTBEAT value
09/09/13 16:58:46 [INFO] Return value = STREAMS_HEARTBEAT
09/09/13 16:58:46 [INFO] execution as [USR@SRC] SQL drop table streams_heartbeat
09/09/13 16:58:46 [INFO] execution as [USR@SRC] SQL create table streams_heartbeat (src_dbname varchar2 (4000), job_number number, heartbeat_time timestamp)
09/09/13 16:58:46 [INFO] execution SQL like [USR@SRC] declare dbs_name varchar2 (4000); start selecting rename in dbs_name from global_name; insert into streams_heartbeat values (dbs_name, 0, SYSTIMESTAMP); end;
09/09/13 16:58:46 [INFO] SQL execution as [USR@SRC] create or replace procedure update_heartbeat IS start update streams_heartbeat set heartbeat_time = (select systimestamp from double); commit; end;
09/09/13 16:58:46 [INFO] execution SQL like [USR@SRC] select table_name from user_tables where upper (table_name) = upper(:1)
09/09/13 16:58:46 [INFO] bind Using CAPTURE_RULES value
09/09/13 16:58:46 [INFO] Return value = CAPTURE_RULES
09/09/13 16:58:46 [INFO] execution as [USR@SRC] SQL drop table capture_rules
09/09/13 16:58:46 [INFO] execution as [USR@SRC] SQL create table capture_rules (nom_regle varchar2 (50), rule_scope varchar2 (6), rule_type VARCHAR2 (3), obj_name varchar2 (100))
09/09/13 16:58:46 [INFO] execution SQL like [ADM@AV] select Rename global_name
09/09/13 16:58:46 [INFO] Return value is AVDB. AVSRV
09/09/13 16:58:46 [INFO] execution SQL like [USR@SRC] select db_link in user_db_links where db_link =: 1
09/09/13 16:58:46 [INFO] Using AVDB bind value. AVSRV
09/09/13 16:58:46 [INFO] Return value is AVDB. AVSRV
09/09/13 16:58:46 [INFO] the Execute SQL as database link [USR@SRC] drop "AVDB. AVSRV ".
09/09/13 16:58:46 [INFO] execution SQL like [USR@SRC] select the version of v$ instance
09/09/13 16:58:46 [INFO] Return value = 11.2.0.1.0
09/09/13 16:58:46 [INFO] creating DB link using AVDB. AVSRV, AVSRCUSR1, {avsrcusr_pwd}, Lugaopc, 1521, orcl
09/09/13 16:58:46 [INFO] login as srcuser_ora01 to @(DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=Lugaopc) (PORT = 1521)) (CONNECT_DATA = (SERVICE_NAME = orcl)))
09/09/13 16:58:46 [INFO] output of SQLPlus
09/09/13 16:58:46 [INFO]
09/09/13 16:58:46 [INFO] Package created.
09/09/13 16:58:46 [INFO]
09/09/13 16:58:46 [INFO] no error.
09/09/13 16:58:47 [INFO]
09/09/13 16:58:47 [INFO] package body created.
09/09/13 16:58:47 [INFO]
09/09/13 16:58:47 [INFO] no error.
09/09/13 16:58:47 [INFO]
09/09/13 16:58:47 [INFO] Package created.
09/09/13 16:58:47 [INFO]
09/09/13 16:58:47 [INFO] no error.
09/09/13 16:58:47 [INFO]
09/09/13 16:58:47 [INFO] package body created.
09/09/13 16:58:47 [INFO]
09/09/13 16:58:47 [INFO] no error.
09/09/13 16:58:47 [INFO] execution SQL like [USR@SRC] select distinct name of user_errors, whose name =: 1
09/09/13 16:58:47 [INFO] bind Using DBMS_SRC_STREAMS_COLLECTOR value
09/09/13 16:58:47 [INFO] Return value = null
09/09/13 16:58:47 [ERROR] could not get by using jdbc connection AV source user:oracle:oci:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=Lugaopc)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=orcl)))
09/09/13 16:58:47 [ERROR] ORA-01017: name of user and password invalid. connection refused
java.sql.SQLException: ORA-01017: name of user and password invalid. connection refused
at oracle.jdbc.driver.T2CConnection.checkError(T2CConnection.java:765)
at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:414)
to oracle.jdbc.driver.PhysicalConnection. < init > (PhysicalConnection.java:546)
to oracle.jdbc.driver.T2CConnection. < init > (T2CConnection.java:162)
at oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:53)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:140)
to oracle.av.avca.jdbc.JdbcConnection. < init > (JdbcConnection.java:87)
at oracle.av.orcldb.DAO.initConnection(DAO.java:79)
to oracle.av.orcldb.DAO. < init > (DAO.java:64)
at oracle.av.orcldb.commands.AddCollector.setupCollector(AddCollector.java:746)
at oracle.av.orcldb.commands.AddCollector.execute(AddCollector.java:230)
at oracle.av.orcldb.Command.process(Command.java:89)
at oracle.av.orcldb.Main.process(Main.java:118)
at oracle.av.orcldb.Main.main(Main.java:132)
I searched the forum at my best level without clear solution
Concerning
Sadik
avorcldb add_collector - REDO SrcName orcl nom_agent - avagent01 - colltype - av Lugaopc:1521:orcl
Specify the connection string to the Vault check server not in the source database
-
SQL error: ORA-01031: insufficient privileges
I am trying to create a view. I logged as a DBA. Please suggest.
create or replace view tspace_vw as
SELECT tablespace_name,
Total_Size 'Total_Size (MB).
Free_space "Free_Space (MB).
(Total_size - free_space) "USED_SPACE (MB).
round (((Total_size-Free_Space)/Total_size) * 100, 2) | ' %' "% USED.
DE)
SELECT a.tablespace_name,
Round(sum(a.bytes)/1024/1024,2) Total_Size,.
Round(sum(b.free_bytes)/1024/1024,2) free_space
FROM dba_data_files a, (SELECT file_id, SUM (bytes) free_bytes
FROM dba_free_space
GROUP BY file_id
) b
WHERE a.file_id = b.file_id
and nom_tablespace not in ('SYSTEM', 'SYSAUX', 'UNDOTBS1', 'TEMP')
GROUP BY a.tablespace_name
)
ORDER BY nom_tablespace;
================================================
SQL error: ORA-01031: insufficient privileges
01031 00000 - "insufficient privileges".
978487 wrote:
I am trying to create a view. I logged as a DBA. Please suggest.
SQL error: ORA-01031: insufficient privileges
01031 00000 - "insufficient privileges".
You must grant the right to SELECT user views the two system.
>
Grant select on dba_data_files Scott;
Grant select on dba_free_space Scott;
>
I'm assuming that "connected is a DBA" means that you granted the DBA role to the user. But you need to grant privileges directly so that they are able to create a view.
See CREATE VIEW in the doc of the SQL language
http://docs.Oracle.com/CD/B28359_01/server.111/b28286/statements_8004.htm
>
The owner of the schema containing the view must have the necessary privileges to either select, insert, update, or delete rows from all tables or views on which the opinion is based. The owner must grant these privileges directly, rather than through a role.
>
-
log in - help sql: error ORA-01489: string concatena result
Here's a sql query and I am cooking a decoding, but since there are several columns invloved when I try to run it I get the following error:
ORA-01489: result of concatenating string is too long
Any kind of help is appreciated, I need to get it going or I'm dead :(
Concerning
Rahul
SQL:
Select sys_connect_by_path(c.decode_prep,'-') decode_prep
from (select "DECODE (BIAPPS_11.'|)") substr (b.all_cols, InStr(b.all_cols,',',1,a.RN) + 1, InStr(b.all_cols,',',1,a.RN+1)-InStr(b.all_cols,',',1,a.RN)-1). «, » ||' RAHULKALRA.' | substr (b.all_cols, InStr(b.all_cols,',',1,a.RN) + 1, InStr(b.all_cols,',',1,a.RN+1)-InStr(b.all_cols,',',1,a.RN)-1) |', "1", "0")' decode_prep, rownum curr, prev rownum-1
from (select rownum rn
Double connect rownum < =.
(select (length('ROW_WID,COST_CENTER_NUM,COST_CENTER_NAME,COST_CENTER_DESC,CONTROL_AREA_NUM,CONTROL_AREA_NAME,CATEGORY_CODE,CATEGORY_NAME,CATEGORY_DESC,MANAGER_NAME,CURRENCY_CODE,CURRENCY_NAME,LANGUAGE_CODE,LANGUAGE_NAME,ST_ADDRESS1,ST_ADDRESS2,POST_OFFICE_BOX,CITY_NAME,STATE_CODE,STATE_NAME,REGION_CODE,REGION_NAME,COUNTRY_CODE,COUNTRY_NAME,POSTAL_CODE,PHONE_NUM,FAX_NUM ,CSCN_HIER1_CODE,CSCN_HIER1_NAME,CSCN_HIER2_CODE,CSCN_HIER2_NAME,CSCN_HIER3_CODE,CSCN_HIER3_NAME,CSCN_HIER4_CODE,CSCN_HIER4_NAME,CSCN_HIER5_CODE,CSCN_HIER5_NAME,CSCN_HIER6_CODE,CSCN_HIER6_NAME,ACTIVE_FLG,CREATED_BY_WID,CHANGED_BY_WID,CREATED_ON_DT,CHANGED_ON_DT,AUX1_CHANGED_ON_DT,AUX2_CHANGED_ON_DT,AUX3_CHANGED_ON_DT ,AUX4_CHANGED_ON_DT,SRC_EFF_FROM_DT,SRC_EFF_TO_DT,EFFECTIVE_FROM_DT,EFFECTIVE_TO_DT,DELETE_FLG,CURRENT_FLG,W_INSERT_DT,W_UPDATE_DT,DATASOURCE_NUM_ID,ETL_PROC_WID,INTEGRATION_ID,SET_ID,TENANT_ID,X_CUSTOM')
- length(replace('ROW_WID,COST_CENTER_NUM,COST_CENTER_NAME,COST_CENTER_DESC,CONTROL_AREA_NUM,CONTROL_AREA_NAME,CATEGORY_CODE,CATEGORY_NAME,CATEGORY_DESC,MANAGER_NAME,CURRENCY_CODE,CURRENCY_NAME,LANGUAGE_CODE,LANGUAGE_NAME,ST_ADDRESS1,ST_ADDRESS2,POST_OFFICE_BOX,CITY_NAME,STATE_CODE,STATE_NAME,REGION_CODE,REGION_NAME,COUNTRY_CODE,COUNTRY_NAME,POSTAL_CODE,PHONE_NUM,FAX_NUM ,CSCN_HIER1_CODE,CSCN_HIER1_NAME,CSCN_HIER2_CODE,CSCN_HIER2_NAME,CSCN_HIER3_CODE,CSCN_HIER3_NAME,CSCN_HIER4_CODE,CSCN_HIER4_NAME,CSCN_HIER5_CODE,CSCN_HIER5_NAME,CSCN_HIER6_CODE,CSCN_HIER6_NAME,ACTIVE_FLG,CREATED_BY_WID,CHANGED_BY_WID,CREATED_ON_DT,CHANGED_ON_DT,AUX1_CHANGED_ON_DT,AUX2_CHANGED_ON_DT,AUX3_CHANGED_ON_DT ,AUX4_CHANGED_ON_DT,SRC_EFF_FROM_DT,SRC_EFF_TO_DT,EFFECTIVE_FROM_DT,EFFECTIVE_TO_DT,DELETE_FLG,CURRENT_FLG,W_INSERT_DT,W_UPDATE_DT,DATASOURCE_NUM_ID,ETL_PROC_WID,INTEGRATION_ID,SET_ID,TENANT_ID,X_CUSTOM',',')))+1 total_cols
the double)), (select ',' |') ROW_WID,COST_CENTER_NUM,COST_CENTER_NAME,COST_CENTER_DESC,CONTROL_AREA_NUM,CONTROL_AREA_NAME,CATEGORY_CODE,CATEGORY_NAME,CATEGORY_DESC,MANAGER_NAME,CURRENCY_CODE,CURRENCY_NAME,LANGUAGE_CODE,LANGUAGE_NAME,ST_ADDRESS1,ST_ADDRESS2,POST_OFFICE_BOX,CITY_NAME,STATE_CODE,STATE_NAME,REGION_CODE,REGION_NAME,COUNTRY_CODE,COUNTRY_NAME,POSTAL_CODE,PHONE_NUM,FAX_NUM,CSCN_HIER1_CODE ,CSCN_HIER1_NAME,CSCN_HIER2_CODE,CSCN_HIER2_NAME,CSCN_HIER3_CODE,CSCN_HIER3_NAME,CSCN_HIER4_CODE,CSCN_HIER4_NAME,CSCN_HIER5_CODE,CSCN_HIER5_NAME,CSCN_HIER6_CODE,CSCN_HIER6_NAME,ACTIVE_FLG,CREATED_BY_WID,CHANGED_BY_WID,CREATED_ON_DT,CHANGED_ON_DT,AUX1_CHANGED_ON_DT,AUX2_CHANGED_ON_DT,AUX3_CHANGED_ON_DT,AUX4_CHANGED_ON_DT SRC_EFF_FROM_DT , SRC_EFF_TO_DT, EFFECTIVE_FROM_DT, EFFECTIVE_TO_DT, DELETE_FLG, CURRENT_FLG, W_INSERT_DT, W_UPDATE_DT, DATASOURCE_NUM_ID, ETL_PROC_WID, INTEGRATION_ID, SET_ID, TENANT_ID, X_CUSTOM' | (',' double all_cols) b) c
Start by curr = 1
Connect prior curr = prev
length (sys_connect_by_path(c.decode_prep,'-')) desc order
---------------------------------------------------------------------------------------------
same as above sql only the difference is here I'm pulling the first record in the result set that top query returns:
Select ltrim (replace(decode_prep,'-','||'),'| ') decode_prep
of (sys_connect_by_path(c.decode_prep,'-') select decode_prep)
from (select "DECODE (BIAPPS_11.'|)") substr (b.all_cols, InStr(b.all_cols,',',1,a.RN) + 1, InStr(b.all_cols,',',1,a.RN+1)-InStr(b.all_cols,',',1,a.RN)-1). «, » ||' RAHULKALRA.' | substr (b.all_cols, InStr(b.all_cols,',',1,a.RN) + 1, InStr(b.all_cols,',',1,a.RN+1)-InStr(b.all_cols,',',1,a.RN)-1) |', "1", "0")' decode_prep, rownum curr, prev rownum-1
from (select rownum rn
Double connect rownum < =.
(select (length('ROW_WID,COST_CENTER_NUM,COST_CENTER_NAME,COST_CENTER_DESC,CONTROL_AREA_NUM,CONTROL_AREA_NAME,CATEGORY_CODE,CATEGORY_NAME,CATEGORY_DESC,MANAGER_NAME,CURRENCY_CODE,CURRENCY_NAME,LANGUAGE_CODE,LANGUAGE_NAME,ST_ADDRESS1,ST_ADDRESS2,POST_OFFICE_BOX,CITY_NAME,STATE_CODE,STATE_NAME,REGION_CODE,REGION_NAME,COUNTRY_CODE,COUNTRY_NAME,POSTAL_CODE,PHONE_NUM,FAX_NUM ,CSCN_HIER1_CODE,CSCN_HIER1_NAME,CSCN_HIER2_CODE,CSCN_HIER2_NAME,CSCN_HIER3_CODE,CSCN_HIER3_NAME,CSCN_HIER4_CODE,CSCN_HIER4_NAME,CSCN_HIER5_CODE,CSCN_HIER5_NAME,CSCN_HIER6_CODE,CSCN_HIER6_NAME,ACTIVE_FLG,CREATED_BY_WID,CHANGED_BY_WID,CREATED_ON_DT,CHANGED_ON_DT,AUX1_CHANGED_ON_DT,AUX2_CHANGED_ON_DT,AUX3_CHANGED_ON_DT ,AUX4_CHANGED_ON_DT,SRC_EFF_FROM_DT,SRC_EFF_TO_DT,EFFECTIVE_FROM_DT,EFFECTIVE_TO_DT,DELETE_FLG,CURRENT_FLG,W_INSERT_DT,W_UPDATE_DT,DATASOURCE_NUM_ID,ETL_PROC_WID,INTEGRATION_ID,SET_ID,TENANT_ID,X_CUSTOM')
- length(replace('ROW_WID,COST_CENTER_NUM,COST_CENTER_NAME,COST_CENTER_DESC,CONTROL_AREA_NUM,CONTROL_AREA_NAME,CATEGORY_CODE,CATEGORY_NAME,CATEGORY_DESC,MANAGER_NAME,CURRENCY_CODE,CURRENCY_NAME,LANGUAGE_CODE,LANGUAGE_NAME,ST_ADDRESS1,ST_ADDRESS2,POST_OFFICE_BOX,CITY_NAME,STATE_CODE,STATE_NAME,REGION_CODE,REGION_NAME,COUNTRY_CODE,COUNTRY_NAME,POSTAL_CODE,PHONE_NUM,FAX_NUM ,CSCN_HIER1_CODE,CSCN_HIER1_NAME,CSCN_HIER2_CODE,CSCN_HIER2_NAME,CSCN_HIER3_CODE,CSCN_HIER3_NAME,CSCN_HIER4_CODE,CSCN_HIER4_NAME,CSCN_HIER5_CODE,CSCN_HIER5_NAME,CSCN_HIER6_CODE,CSCN_HIER6_NAME,ACTIVE_FLG,CREATED_BY_WID,CHANGED_BY_WID,CREATED_ON_DT,CHANGED_ON_DT,AUX1_CHANGED_ON_DT,AUX2_CHANGED_ON_DT,AUX3_CHANGED_ON_DT ,AUX4_CHANGED_ON_DT,SRC_EFF_FROM_DT,SRC_EFF_TO_DT,EFFECTIVE_FROM_DT,EFFECTIVE_TO_DT,DELETE_FLG,CURRENT_FLG,W_INSERT_DT,W_UPDATE_DT,DATASOURCE_NUM_ID,ETL_PROC_WID,INTEGRATION_ID,SET_ID,TENANT_ID,X_CUSTOM',',')))+1 total_cols
the double)), (select ',' |') ROW_WID,COST_CENTER_NUM,COST_CENTER_NAME,COST_CENTER_DESC,CONTROL_AREA_NUM,CONTROL_AREA_NAME,CATEGORY_CODE,CATEGORY_NAME,CATEGORY_DESC,MANAGER_NAME,CURRENCY_CODE,CURRENCY_NAME,LANGUAGE_CODE,LANGUAGE_NAME,ST_ADDRESS1,ST_ADDRESS2,POST_OFFICE_BOX,CITY_NAME,STATE_CODE,STATE_NAME,REGION_CODE,REGION_NAME,COUNTRY_CODE,COUNTRY_NAME,POSTAL_CODE,PHONE_NUM,FAX_NUM,CSCN_HIER1_CODE ,CSCN_HIER1_NAME,CSCN_HIER2_CODE,CSCN_HIER2_NAME,CSCN_HIER3_CODE,CSCN_HIER3_NAME,CSCN_HIER4_CODE,CSCN_HIER4_NAME,CSCN_HIER5_CODE,CSCN_HIER5_NAME,CSCN_HIER6_CODE,CSCN_HIER6_NAME,ACTIVE_FLG,CREATED_BY_WID,CHANGED_BY_WID,CREATED_ON_DT,CHANGED_ON_DT,AUX1_CHANGED_ON_DT,AUX2_CHANGED_ON_DT,AUX3_CHANGED_ON_DT,AUX4_CHANGED_ON_DT SRC_EFF_FROM_DT , SRC_EFF_TO_DT, EFFECTIVE_FROM_DT, EFFECTIVE_TO_DT, DELETE_FLG, CURRENT_FLG, W_INSERT_DT, W_UPDATE_DT, DATASOURCE_NUM_ID, ETL_PROC_WID, INTEGRATION_ID, SET_ID, TENANT_ID, X_CUSTOM' | (',' double all_cols) b) c
Start by curr = 1
Connect prior curr = prev
length (sys_connect_by_path(c.decode_prep,'-')) desc order)
where rownum = 1
Published by: Mac_Freak_Rahul on November 28, 2012 01:31: in the first sql ')'
removed after desc in the last line so now this query begin and will throw an error.Mac_Freak_Rahul wrote:
@Blushadow:(1) first of all, I'm sorry for not posting my question according to the rules of the forum, next time I'll take care of that.
(2) Secondly, thanks for the solution, I have no exp with clob, but I can take a deeper look later.
(3) I just want to know if there are any other wayout, you mean the second concatenation of 4000 bytes sys_connect_by_path exhausts it might return this error?SYS_CONNECT_BY_PATH returns a VARCHAR2 data type. In SQL VARCHAR2 data type is limited to 4000 bytes, then Yes, you will get an error if the data that you generate is greater than 4000 bytes (and I say bytes rather than characters, because if your database uses a multibyte multi character set could be as little as 1000 characters)
I'm right now stable for a table who got 62 columns... I have tables that have 200 close passes: (, great, if you can throw some light on this, if your the best way and the only one to achieve?)
If you really need to concatenate strings together which exceeds 4000 bytes, then Yes you must use CLOB to store data. Oracle does not provide a native way to aggregate together in a CLOB datatype string, so why you need to write your own function.
PS: just a quick overview of my value, it will be by comparing schema1.table (s) with shema2.table (s) where table_name must be the same...
So why are you information concatenation together to achieve this goal?
Maybe you are looking for
-
Equium M50-235: IDE or SATA HDD?
Does anyone know if the Toshiba M50-235 using an IDE or a SATA hard drive? Thank you!
-
Apparently, I need something called a "connector plug-and-play" so I can use my pedals to navigate through a test of medical transcription dictation using Express Scribe for audio and Windows Media Player to the foot pedal. I don't know if I have all
-
BlackBerry Smartphones Blackberry 9720. Edit my profile
Silly question. How can I change my profile on the Support Forum for the Blackberry device?
-
Hi, I'm rather confused... in April 2016 I bought lightroom and its installed on my computer (I used it yesterday evening) today when I open it it goes to the free 30 day trial window and "I can't open the lightroom to continue the project ' I starte
-
Presets does not work; 10.5.8; OfficeJet Pro 8000n
Hello all- I have been using a Business Inkjet 1100d for many years without difficulty. I created several gifts that worked perfectly. Currently 10.5.8 System. I just bought a new Officejet Pro 8000n and installed all the new software from the CD p