RMAN - Query on V$BACKUP_SET inconsistency
Hi friends,
Oracle Database EE 11.2.0.2 on Solaris 10...
We have incremental level 0 backups which runs on Sunday using command
backup as compressed backupset incremental level 0 .....
We have incremental level 1 backups which runs everyday other than Sunday using command
backup as compressed backupset incremental level 1 database....
After the backup ran for today, what I see is as shown below..
SQL> select BACKUP_TYPE,INCREMENTAL_LEVEL,START_TIME,COMPLETION_TIME from v$backup_set where START_TIME > sysdate -4 and BACKUP_TYPE<>'L';
B INCREMENTAL_LEVEL START_TIME COMPLETION_TIME
D 0 28-AUG-2011 04:30 28-AUG-2011 04:33
D 0 28-AUG-2011 04:30 28-AUG-2011 04:33
I 1 29-AUG-2011 04:30 29-AUG-2011 04:33
I 1 29-AUG-2011 04:30 29-AUG-2011 04:35
I 1 30-AUG-2011 04:30 30-AUG-2011 04:33
I 1 30-AUG-2011 04:30 30-AUG-2011 04:35
I 1 31-AUG-2011 04:30 31-AUG-2011 04:33
I 1 31-AUG-2011 04:30 31-AUG-2011 04:35
D 31-AUG-2011 04:35 31-AUG-2011 04:35
D 31-AUG-2011 06:30 31-AUG-2011 06:30
D 31-AUG-2011 08:30 31-AUG-2011 08:30As per Oracle documentation V$BACKUP_SET,BACKUP_TYPE holds
"BACKUP_TYPE VARCHAR2(1) Type of files that are in this backup. If the backup contains archived redo logs, the value is L. If this is a datafile full backup, the value is D. If this is an incremental backup, the value is I."
"INCREMENTAL_LEVEL NUMBER Location where this backup set fits into the database's backup strategy. Set to zero for full datafile backups, nonzero for incremental datafile backups, and NULL for archivelog backups."
So the above query shows an entry with "D" which means a full datafile backup did run today, but you can see INCREMENTAL_LEVEL is null which means it is not a full datafile backup. My questions is, why is BACKUP_TYPE field showing not as per the documentation -Why it is showing a "D" ?
Listing the backup also does not show a full backup.
Thanks in Advance.
RMAN> list backup summary;
using target database control file instead of recovery catalog
List of Backups
===============
Key TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag
1722 B 0 A DISK 28-AUG-11 1 1 YES DB_FULL_BACKUP
1723 B 0 A DISK 28-AUG-11 1 1 YES DB_FULL_BACKUP
1724 B A A DISK 28-AUG-11 1 1 YES TAG20110828T043338
1727 B A A DISK 28-AUG-11 1 1 YES TAG20110828T063036
1729 B A A DISK 28-AUG-11 1 1 YES TAG20110828T083025
1731 B A A DISK 28-AUG-11 1 1 YES TAG20110828T103015
1733 B A A DISK 28-AUG-11 1 1 YES TAG20110828T123050
1735 B A A DISK 28-AUG-11 1 1 YES TAG20110828T143026
1737 B A A DISK 28-AUG-11 1 1 YES TAG20110828T163025
1739 B A A DISK 28-AUG-11 1 1 YES TAG20110828T183025
1741 B A A DISK 28-AUG-11 1 1 YES TAG20110828T203029
1743 B A A DISK 28-AUG-11 1 1 YES TAG20110828T223027
1745 B A A DISK 29-AUG-11 1 1 YES TAG20110829T003025
1747 B A A DISK 29-AUG-11 1 1 YES TAG20110829T023043
1749 B 1 A DISK 29-AUG-11 1 1 YES DB_INCR_BACKUP
1750 B 1 A DISK 29-AUG-11 1 1 YES DB_INCR_BACKUP
1751 B A A DISK 29-AUG-11 1 1 YES TAG20110829T043543
1752 B A A DISK 29-AUG-11 1 1 YES TAG20110829T043543
1754 B A A DISK 29-AUG-11 1 1 YES TAG20110829T063027
1756 B A A DISK 29-AUG-11 1 1 YES TAG20110829T083027
1758 B A A DISK 29-AUG-11 1 1 YES TAG20110829T103035
1760 B A A DISK 29-AUG-11 1 1 YES TAG20110829T123054
1762 B A A DISK 29-AUG-11 1 1 YES TAG20110829T143043
1764 B A A DISK 29-AUG-11 1 1 YES TAG20110829T163029
1766 B A A DISK 29-AUG-11 1 1 YES TAG20110829T183036
1768 B A A DISK 29-AUG-11 1 1 YES TAG20110829T203026
1770 B A A DISK 29-AUG-11 1 1 YES TAG20110829T223029
1772 B A A DISK 30-AUG-11 1 1 YES TAG20110830T003021
1774 B A A DISK 30-AUG-11 1 1 YES TAG20110830T023042
1776 B 1 A DISK 30-AUG-11 1 1 YES DB_INCR_BACKUP
1777 B 1 A DISK 30-AUG-11 1 1 YES DB_INCR_BACKUP
1778 B A A DISK 30-AUG-11 1 1 YES TAG20110830T043517
1779 B A A DISK 30-AUG-11 1 1 YES TAG20110830T043517
1781 B A A DISK 30-AUG-11 1 1 YES TAG20110830T063031
1783 B A A DISK 30-AUG-11 1 1 YES TAG20110830T083027
1785 B A A DISK 30-AUG-11 1 1 YES TAG20110830T103026
1787 B A A DISK 30-AUG-11 1 1 YES TAG20110830T123041
1789 B A A DISK 30-AUG-11 1 1 YES TAG20110830T143021
1791 B A A DISK 30-AUG-11 1 1 YES TAG20110830T163030
1793 B A A DISK 30-AUG-11 1 1 YES TAG20110830T183033
1795 B A A DISK 30-AUG-11 1 1 YES TAG20110830T203026
1797 B A A DISK 30-AUG-11 1 1 YES TAG20110830T223027
1799 B A A DISK 31-AUG-11 1 1 YES TAG20110831T003027
1801 B A A DISK 31-AUG-11 1 1 YES TAG20110831T023048
1803 B 1 A DISK 31-AUG-11 1 1 YES DB_INCR_BACKUP
1804 B 1 A DISK 31-AUG-11 1 1 YES DB_INCR_BACKUP
1805 B A A DISK 31-AUG-11 1 1 YES TAG20110831T043513
1806 B A A DISK 31-AUG-11 1 1 YES TAG20110831T043513
1807 B F A DISK 31-AUG-11 1 1 NO TAG20110831T043518
1808 B A A DISK 31-AUG-11 1 1 YES TAG20110831T063015
1809 B F A DISK 31-AUG-11 1 1 NO TAG20110831T063024
1810 B A A DISK 31-AUG-11 1 1 YES TAG20110831T083026
1811 B F A DISK 31-AUG-11 1 1 NO TAG20110831T083034Thanks in Advance,
SSN
Please see the details below.
ibs-ash-sr117 ora2g [ic2gprd1]:grep "input datafile file number" rman_incrbackup_310811.log
input datafile file number=00006 name=+DATA/ic2gprd/datafile/ico_2g.300.752046801
input datafile file number=00005 name=+DATA/ic2gprd/datafile/undotbs2.296.752043055
input datafile file number=00004 name=+DATA/ic2gprd/datafile/users.291.752042881
input datafile file number=00002 name=+DATA/ic2gprd/datafile/sysaux.289.752042881
input datafile file number=00007 name=+DATA/ic2gprd/datafile/icobill_2g.370.754999093
input datafile file number=00001 name=+DATA/ic2gprd/datafile/system.288.752042879
input datafile file number=00003 name=+DATA/ic2gprd/datafile/undotbs1.290.752042881
ibs-ash-sr117 ora2g [ic2gprd1]:grep "input datafile file number" rman_incrbackup_310811.log | wc -l
7
SQL> select count(*) from dba_data_files ;
COUNT(*)
7
SQL> select count(*),status from dba_tablespaces group by status;
COUNT(*) STATUS
8 ONLINE
RMAN> show all;
using target database control file instead of recovery catalog
RMAN configuration parameters for database with db_unique_name IC2GPRD are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1;
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/orabackup/ora2g/rman/controlfile/%F';
CONFIGURE DEVICE TYPE DISK PARALLELISM 2 BACKUP TYPE TO BACKUPSET;
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/projects/ora2g/product/11.2.0/db_1/dbs/snapcf_ic2gprd1.f'; # default
Similar Messages
-
General, tentative RMAN query: why bother?
Hi.
I would like to propose to my boss that we could use RMAN.
This is what we do right now:
Nightly cold backups to tape. Each night around 250G written to tape.
Using O/S commands in Unix.
Using AIX System Backup and Recovery/6000 (Sysback) to do the backups.
I am reading the RMAN user guide at the moment, but I wanted to check to see if there are any general points I should keep in mind while considering my proposal.
One immediate concern is if we will have to invest in a media management library to interface with our sysback software.
Cheers.
DAHi Dan A:
You do not need a media management library, unless you want to backup directly to tape from RMAN.
You could simply use RMAN to backup to disk and then, once the RMAN backup has completed, get the RMAN backup files onto tape using your usual backup-to-tape procedure.
Given that 250GB is a reasonable size, I'd look into:
1) Configuring multiple channels, with each channel pointing to a separate disk, so that RMAN can write the backups more quickly.
2) Block Change Tracking, to try to reduce the amount of data being backed up.
3) Incremental backups.
Have a look at the Oracle documentation for details.
HTH -
Query Results are having inconsistency
Hi,
I found the report is giving wrong values recently which was working fine earlier. I performed RSRV test run on the Objects and found the below error message. I tried to correct error but no result.
The referential integrity is checked for 9 characteristics
Too many missing specifications for InfoObject ZXXX
The SID values are missing for 8,980,471 specifications for characteristic ZXXXX
Too many missing specifications for InfoObject ZXXXX
The SID values are missing for 7,678,305 specifications for characteristic ZXXXX
Too many missing specifications for InfoObject ZXXX
The SID values are missing for 5,100,973 specifications for characteristic ZXXXX
The SID values are missing for 1 specifications for characteristic 0PXXXX
The SID values are missing for 9 specifications for characteristic ZXXXXX
The interval for number range object BIM0001252 does not exist,
I am not sure it will be having any impact at the update rules because we have a update routine.
could any one please suggest the solution to the above problem.
Regards,
VenkatHello,
Run the report in se38 RSDMD_CHECKPRG_ALL for every object you're encounter the error.
This will fix your errors.
Diogo. -
RMAN Retention policy 5 days but v$backup_set shows unexpected return
ORACLE 10.2
RMAN NOCATALOG
Windows Server 2003
Hi All,
Just trying to get to grips with RMAN.
I have the Retention policy set to 5 with Auto Backup Control File.
I use a scheduled task to take a full backup every night due to small size of database.
With a 'delete noprompt obsolete' after the backup to remove old backups.
When I query the v$backup_set I get a return from a backupset from over 10 days ago? (this does not exist in my backup location) other than that the return is as expected.
Can any one tell me why this is displaying and how to remove the invalid returns.
Best Regards and Happy Xmas
Neil
Message was edited by: removed para due to believe it was incorrect statement
So i beieve this is stored in the control file which has a default retention of 7 days (CONTROL_FILE_RECORD_KEEP_TIME)
Neil HunterHi,
Slimmed down RMAN report shows me the following, Sorry struggling with layout...
BS Key Type LV Size Device Type Elapsed Time Completion Time
26 Full 6.80M DISK 00:00:00 14-DEC-07
28 Full 6.80M DISK 00:00:00 15-DEC-07
30 Full 6.86M DISK 00:00:00 16-DEC-07
32 Full 6.86M DISK 00:00:01 17-DEC-07
34 Full 6.86M DISK 00:00:01 18-DEC-07
I have dates when selecting from v$backup_set from the 7,12,13 Dec? as well as the above..... extract as below
COUNT B CON INCREMENTAL_LEVEL PIECES START_TIM COMPLETIO ELAPSED_SECONDS BLOCK_SIZE INP KEE KEEP_UNTI KEEP_OPTIO
1 640712259 640712258 2 D NO 1 07-DEC-07 07-DEC-07 1 8192 NO NO
2 640712260 640712259 3 D YES 1 07-DEC-07 07-DEC-07 1 16384 NO NO
3 640712625 640712625 4 D NO 1 07-DEC-07 07-DEC-07 0 8192 NO NO
4 640712626 640712626 5 D YES 1 07-DEC-07 07-DEC-07 0 16384 NO NO
5 640712648 640712648 6 D NO 1 07-DEC-07 07-DEC-07 0 8192 NO NO
6 640712649 640712649 7 D YES 1 07-DEC-07 07-DEC-07 0 16384 NO NO
7 640713224 640713223 8 D NO 1 07-DEC-07 07-DEC-07 1 8192 NO NO
8 640713225 640713225 9 D YES 1 07-DEC-07 07-DEC-07 0 16384 NO NO
9 640713657 640713282 10 D NO 1 07-DEC-07 07-DEC-07 375 8192 NO NO
10 640713668 640713667 11 D YES 1 07-DEC-07 07-DEC-07 1 16384 NO NO
This could have been when I was setting up RMAN and testing taking a backup? how do I delete or will they expire....
Reference you previous emails the KEEP fields are blank......
Regards
Neil
Message was edited by:
Neil Hunter
Message was edited by:
Neil Hunter -
Error message "Error when scheduling the query(JOB_CLOSE)".
Hi all,
While using query extractor (rscrm_bapi) I am getting error message "Error when scheduling the query(JOB_CLOSE)".
Could you please find what this error is?
Thanks,
Uday.Hi Uday,
This problem can occur if you changed the query definition.
In this case the query definition would be inconsistent with the existing extract structure.
Certain Meta information is maintained with each extract defined using the RSCRM_BAPI. If the definition of the query is changed and you need to use the same extract table then you need to delete the extract using the report RSCRMBW_DEL_ALL_EXTRACTS selecting the extract you want
to delete.
After this you could use the same table name for any further extract that you need to create.
One caution is that the extract table should not be deleted through any other transaction before you run the report.
Rgds,
Colum -
[Oracle 8i] ORA-00932 Inconsistent Datatypes
Hopefully this is a quick question to answer. In running a query I get the 'inconsistent datatypes' error, and I've narrowed the error down to one part of my query:
SELECT CASE
WHEN sopn.plan_start_dt < SYSDATE THEN SYSDATE
ELSE sopn.plan_start_dt
END
FROM SOPN sopn(replacing SYSDATE with an actual hard-coded date doesn't work either)
The field sopn.plan_start_dt is definitely a date datatype. If I do a simple query for just that field with a date parameter in my where statement, it works just fine, for example:
SELECT sopn.plan_start_dt
FROM SOPN sopn
WHERE sopn.plan_start_dt<SYSDATEdoes not give me any errors.
I'm guessing there's something wrong with my case statement, or maybe case statements with date parameters are something Oracle 8i doesn't get along with...
If anyone can tell me why my case statement is causing an 'inconsistent datatype' error, I'd appreciate it. Thanks!Well, this tells me column sopn.plan_start_dt datatype is not DATE. CASE requires all branches to return same type expressions. Most likely sopn.plan_start_dt is VARCHAR2 and it is very bad coding to rely on implicit comversions. Use TO_DATE with proper format. For example:
SELECT CASE
WHEN TO_DATE(sopn.plan_start_dt,'DD-MON-YY') < SYSDATE THEN SYSDATE
ELSE TO_DATE(sopn.plan_start_dt,'DD-MON-YY')
END
FROM SOPN sopnSY. -
Problems with sdo_nn query
Hi there. I am developing a mapping application whereby the user has the option of executing specific spatial queries in order to highlight aspects of certain map features present in the map, e.g. highlight all the parks (polygon geometries) falling within 10 km of a selected point on the map. When running spatial queries I do not encounter any problems whatsoever with sdo_filter, sdo_within_distance, and sdo_relate queries. However, when I try to execute an sdo_nn query, the query returns an incorrect result set. An example sdo_nn query appears as follows:
select /*+ ORDERED*/ a1.land from GEOMETRY_MAP.GEOM_POINT$_TABLE a1, attribute_map.landmark_table a2 where SDO_NN
(location, (MDSYS.SDO_GEOMETRY(2001, 8265, MDSYS.SDO_POINT_TYPE(-105.02074, 39.867985,NULL),NULL, NULL)), 'SDO_NUM_RES = 6')='TRUE'
and a1.land = a2.land and a2.cfcc = 'D43'
This particular example only returns 3 results as oppose to the 6 specified in the query. Just so that you can compare an sdo_nn example query to an sdo_within_distance query to check for inconsistency in the query set up, hte following is an example of an sdo_within_distance spatial query:
select /*+ ORDERED*/ a1.land from GEOMETRY_MAP.GEOM_POINT$_TABLE a1, attribute_map.landmark_table a2 where SDO_WITHIN_DISTANCE
(location, (MDSYS.SDO_GEOMETRY(2001, 8265, MDSYS.SDO_POINT_TYPE(-104.97126, 39.878693,NULL),NULL, NULL)), 'DISTANCE = 10000')='TRUE'
and a1.land = a2.land and a2.cfcc = 'D43'
The above sdo_within_distance query executes perfectly. Can anybody see anything wrong with the way I have set up the sdo_nn query. Everytime I execute a query it simply returns incorrect results. Thanks a lot, JoeHi Dan. I tried all your suggestions and seem to be closing in on the problem. The issue appears to be related to the "where" clause when I am querying >1 table in my database. The reason I am making this assumption is that when I perform sdo_nn queries related to points (queries 2 tables) and polygons (queries 3 tables) the sdo_nn query keeps returning the same results for each feature irrespective of what input coordinates are specified. However, when I perform polyline sdo_nn queries, the correct results are returned each time. The sdo_nn query for polyline features, e.g. rivers, looks as follows:
select /*+ ORDERED no_index (a1 tlid_index_name)*/ a1.TLID from
GEOMETRY_MAP.GEOM_POLYLINE_TABLE a1 where
SDO_NN(polyline, sdo_cs.viewport_transform(MDSYS.SDO_GEOMETRY(2003, 0, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3), MDSYS.SDO_ORDINATE_ARRAY(-104.85824,39.93833,-104.8487,39.94436)), 8265), 'SDO_BATCH_SIZE = 5')='TRUE' and a1.cfcc = 'B11' and rownum < 8
This returns accurate results irrespective of the input coordinates. As is evident from the above query I am querying solely one table even though there are 2 arguments in the "where" clause. Every time I perform an sdo_nn query on point features, e.g. schools, the query accesses 2 tables located in different schemas. This, as far as I can see, is the only difference between the point and polyline queries. The corresponding schools query is as follows:
select /*+ ORDERED no_index (a1 land_index_name)*/ a1.land from
GEOMETRY_MAP.GEOM_POINT$_TABLE a1, attribute_map.landmark_table a2 where SDO_NN(location, sdo_cs.viewport_transform(MDSYS.SDO_GEOMETRY(2003, 0, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3), MDSYS.SDO_ORDINATE_ARRAY (-105.0014,39.87302,-104.97824,39.883293)), 8265), 'SDO_BATCH_SIZE = 1')='TRUE' and a1.land = a2.land and a2.cfcc = 'D43' and rownum < 8
This returns incorrect results. Have you any ideas on what to do next? Thanks a lot, Joe -
Ora-00932 inconsistent datatypes expected got clob
How can I get rid of this error in my query?
ora-00932 inconsistent datatypes expected got clob
The Maximum length of the object is 51465Hello,
I would like to convert LONG into LOB. I get the following error.
SQL> desc all_views
Name Null? Typ
OWNER NOT NULL VARCHAR2(30)
VIEW_NAME NOT NULL VARCHAR2(30)
TEXT_LENGTH NUMBER
TEXT LONG
TYPE_TEXT_LENGTH NUMBER
TYPE_TEXT VARCHAR2(4000)
OID_TEXT_LENGTH NUMBER
OID_TEXT VARCHAR2(4000)
VIEW_TYPE_OWNER VARCHAR2(30)
VIEW_TYPE VARCHAR2(30)
SUPERVIEW_NAME VARCHAR2(30)
SQL> SELECT to_lob(text) from all_views
2 where rownum <= 1;
SELECT to_lob(text) from all_views
FEHLER in Zeile 1:
ORA-00932: Inkonsistente Datentypen: - erwartet, LONG erhaltenDoes anybody have an idea? -
RAC to RAC CLONE FROM RMAN Cold Backup
Hi All,
I need your kind assistance in Cloning my Oracle RAC 11.2.0.2 Environment to remote host. Following is Disk layout
DGVOT (ASM Disk group holding OCR and Voting Disk)
DGDATA (ASM Disk Group Holding Data FIles)
DGFRA (ASM Disk Group Holding Fast Recovery FIles)
Remote Host is on different location so cannot use RMAN duplicate with auxiliary channel.
Have luxury of downtime so I want to take RMAN Consistent( Cold Backup)
SAME Disk layout is available to remote hosts.
11.2.0.2 CLusterware (GI) Plus the oracle binaries are already installed.
Can any body tell me the steps to
1) How to take cold backup to disk so that I can tar and copy to remote host
2) clone the database on remote host
3) How i will add the database listener and other resources of this databasee to clusterware.
actually this is my first RAC clone so i am not much aware of detail steps.
I have gone though many metalink notes but no one is matching with my requirements. your expert advice will help me a lot
Regards,Hi
1) How to take cold backup to disk so that I can tar and copy to remote host.
Use Rman for cold backupIn mount stage execute
RMAN>backup database plus archivelog format '<disk_path>/dbp%U';
RMAN> backup current controlfile format '<disk_path>/ctl%U';
Copy thse backup sets to remote host
2) clone the database on remote host
Create Similar ASM Disk groups as on source
create pfile/spifile, startup instance in nomount mode
catalog backup set
RMAN> catalog start with '<backup_set location>';
Restore controlfile
RMAN>restore controlfile;
RMAN> restore database;
RMAN> recover database;
On successfull recovery
RMAN>sql 'alter database open';
3) How i will add the database listener and other resources of this databasee to clusterware.
User srvctl to add resources
Usage: srvctl <command> <object> [<options>]
commands: enable|disable|start|stop|relocate|status|add|remove|modify|getenv|setenv|unsetenv|config|convert|upgrade
objects: database|instance|service|nodeapps|vip|network|asm|diskgroup|listener|srvpool|server|scan|scan_listener|oc4j|home|filesystem|gns|cvu
For detailed help on each command and object and its options use:
srvctl <command> -h or
srvctl <command> <object> -h
Thanks,
Ajay More -
Report Builder 6i is ending in error if we try to add additional column in the data model query
select rpad('a',50,'-') cust_name_inv,
rpad('a',30,'-') cust_no_inv,
rpad('a',30,'-') sal_name, ---added column
rpad('a',4000,'-') sort_field1_inv,
rpad('a',4000,'-') sort_field2_inv,
0 inv_tid_inv,
0 contact_site_id_inv,
rpad('a',60,'-') cust_state_inv,
rpad('a',60,'-') cust_city_inv,
0 addr_id_inv,
0 cust_id_inv,
0 payment_sched_id_inv,
rpad('a',20,'-') class_inv,
sysdate due_date_inv,
0 amt_due_remaining_inv,
rpad('a',30,'-') invnum,
0 days_past_due,
0 amount_adjusted_inv,
0 amount_applied_inv,
0 amount_credited_inv,
sysdate gl_date_inv,
'x' data_converted_inv,
0 ps_exchange_rate_inv,
0 b0_inv,
0 b1_inv,
0 b2_inv,
0 b3_inv,
0 b4_inv,
0 b5_inv,
0 b6_inv,
rpad('a',25,'-') company_inv,
rpad('a',30,'-') cons_billing_number,
rpad('a',32,'-') invoice_type_inv
from dual
where 1=2
UNION ALL
&common_query_inv
We checked the number of columns passed in the lexical parameter, it tallys with the columns in the data model
Any suggestions is welcome to overcome this issue
Thanks
The lexical parameter passes the following query at run time
SELECT SUBSTRB (party.party_name, 1, 50) cust_name_inv,
cust_acct.account_number cust_no_inv,
jr.NAME sal_name,
c.segment1|| ' '|| c.segment2|| ' '|| c.segment3|| ''|| c.segment4||''|| c.segment5|| ''|| c.segment6 sort_field1_inv,
arpt_sql_func_util.get_trx_type_details(ps.cust_trx_type_id,'NAME') sort_field2_inv,
c.code_combination_id inv_tid_inv,
site.site_use_id contact_site_id_inv,
loc.state cust_state_inv,
loc.city cust_city_inv,
DECODE (:format_detailed,NULL, -1, acct_site.cust_acct_site_id) addr_id_inv,
NVL (cust_acct.cust_account_id, -999) cust_id_inv,
ps.payment_schedule_id payment_sched_id_inv,
ps.CLASS class_inv,
ps.due_date due_date_inv,
DECODE (:c_convert_flag,'Y', ps.acctd_amount_due_remaining, ps.amount_due_remaining) amt_due_remaining_inv,
ps.trx_number invnum,
CEIL (:as_of_date - ps.due_date) days_past_due,
ps.amount_adjusted amount_adjusted_inv,
ps.amount_applied amount_applied_inv,
ps.amount_credited amount_credited_inv,
ps.gl_date gl_date_inv,
DECODE (ps.invoice_currency_code,:functional_currency, NULL,DECODE (ps.exchange_rate, NULL, '*', NULL)) data_converted_inv,
NVL (ps.exchange_rate, 1) ps_exchange_rate_inv,
arpt_sql_func_util.bucket_function (:bucket_line_type_0,
dh.amount_in_dispute,
ps.amount_adjusted_pending,
:bucket_days_from_0,
:bucket_days_to_0,
ps.due_date,
:bucket_category,
:as_of_date
) b0_inv, --------------bucket 1
arpt_sql_func_util.bucket_function (:bucket_line_type_1,
dh.amount_in_dispute,
ps.amount_adjusted_pending,
:bucket_days_from_1,
:bucket_days_to_1,
ps.due_date,
:bucket_category,
:as_of_date
) b1_inv, --------------bucket 2
arpt_sql_func_util.bucket_function (:bucket_line_type_2,
dh.amount_in_dispute,
ps.amount_adjusted_pending,
:bucket_days_from_2,
:bucket_days_to_2,
ps.due_date,
:bucket_category,
:as_of_date
) b2_inv, --------------bucket 3
arpt_sql_func_util.bucket_function (:bucket_line_type_3,
dh.amount_in_dispute,
ps.amount_adjusted_pending,
:bucket_days_from_3,
:bucket_days_to_3,
ps.due_date,
:bucket_category,
:as_of_date
) b3_inv, --------------bucket 4
arpt_sql_func_util.bucket_function (:bucket_line_type_4,
dh.amount_in_dispute,
ps.amount_adjusted_pending,
:bucket_days_from_4,
:bucket_days_to_4,
ps.due_date,
:bucket_category,
:as_of_date
) b4_inv, --------------bucket 5
arpt_sql_func_util.bucket_function (:bucket_line_type_5,
dh.amount_in_dispute,
ps.amount_adjusted_pending,
:bucket_days_from_5,
:bucket_days_to_5,
ps.due_date,
:bucket_category,
:as_of_date
) b5_inv, --------------bucket 6
arpt_sql_func_util.bucket_function (:bucket_line_type_6,
dh.amount_in_dispute,
ps.amount_adjusted_pending,
:bucket_days_from_6,
:bucket_days_to_6,
ps.due_date,
:bucket_category,
:as_of_date
) b6_inv, --------------bucket 7
c.segment1 company_inv,
TO_CHAR (NULL) cons_billing_number,
arpt_sql_func_util.get_trx_type_details(ps.cust_trx_type_id,'NAME') invoice_type_inv
FROM hz_cust_accounts cust_acct,
hz_parties party,
ar_payment_schedules_all ps,
jtf_rs_salesreps jr,
ra_customer_trx_all ra,
hz_cust_site_uses_all site,
hz_cust_acct_sites_all acct_site,
hz_party_sites party_site,
hz_locations loc,
ra_cust_trx_line_gl_dist_all gld,
ar_dispute_history dh,
gl_code_combinations c
WHERE ps.gl_date <= :as_of_date
AND UPPER (RTRIM (RPAD (:p_in_summary_option_low, 1))) = 'I'
AND ps.customer_site_use_id = site.site_use_id
AND site.cust_acct_site_id = acct_site.cust_acct_site_id
AND acct_site.party_site_id = party_site.party_site_id
AND loc.location_id = party_site.location_id
AND ps.gl_date_closed > :as_of_date
AND DECODE (UPPER (:p_in_currency),
NULL, ps.invoice_currency_code,
UPPER (:p_in_currency)
) = ps.invoice_currency_code
AND gld.account_class = 'REC'
AND gld.latest_rec_flag = 'Y'
AND gld.code_combination_id = c.code_combination_id
AND ps.payment_schedule_id = dh.payment_schedule_id(+)
AND :as_of_date >= NVL (dh.start_date(+), :as_of_date)
AND :as_of_date < NVL (dh.end_date(+), :as_of_date + 1)
AND cust_acct.party_id = party.party_id
AND jr.salesrep_id = ra.primary_salesrep_id
AND ps.customer_id + 0 = cust_acct.cust_account_id
AND ps.customer_trx_id + 0 = gld.customer_trx_id
AND 1 = 1The error is query block consists of inconsistent no of columns
-
Warehour builder Vs data model
Can Oracle Warehouse Builder be used for any data modeling development(logical to physical)
Any licensing required?
Ad. thanks for the info!.The error is query block consists of inconsistent no of columns
-
Hi,
I have a question for hierarchical queries.Suppose we have three tables manufacturer,brand and product.I wish to generate the XML for this query.The query I gave is as follows
select a.manid ,b.brandid,c.prodid
from manufacturer a
,brand b
,product c
where b.manid=a.manid
and c.prodid=b.productid
With this query the xml tags for brand and product appears many many times.We wish the reuslt in the following way.
<MANUFATURER>
<NAME> M1</NAME >
<BRAND>
<NAME>B1</NAME>
<PRODUCT>
<NAME>P1</NAME>
</PRODUCT>
<PRODUCT>
<NAME>P2</NAME>
</PRODUCT>
</BRAND>
<BRAND>
<NAME>B2</NAME>
<PRODUCT>
<NAME>P1</NAME>
</PRODUCT>
<PRODUCT>
<NAME>P2</NAME>
</PRODUCT>
</BRAND>
</MANUFACTURER>
I have used cast and multiset but it doesnt give the the result which we want.
When I am executing the following query it gives error inconsistent datatypes.
select manid,cast(multiset(select brandid,cast(multiset(select prodid from product
where product.prodid=brand.productid
)as p1_list)product
from brand
where brand.manid=manufacturer.manid)as b1_list)brand
from manufacturer
How can I write the query using the cast and multiset ?Is there any other way?I
Have seen with two tables cast and multiset works fine.
Please help me.
Thanks.
Pooja
nullThe objects feature currently available does not support multiple levels of nesting with
respect to collections (it supports multiple levels of nesting of object types).
To overcome this, you need can use the CURSOR() subquery. The CURSOR() is a way of evaluating subqueries in the SELECT List.
e.g.
select manid, CURSOR(
select brandid,
CURSOR(select productid from
from product p
where p.brandid = b.brandid)
AS productlist
from brand b
where b.manid = m.manid) AS brandlist
from manufacturer m
will produce u a result like,
<ROWSET>
<MANID>100</MANID>
<BRANDLIST>
<BRANDLIST_ROW>
<BRANDID>200</BRANDID>
<PRODUCTLIST>
<PRODUCTLIST_ROW>
<PRODUCTID>2000</PRODUCTID>
</PRODUCTLIST_ROW>
.... // more productlist_rows
</PRODUCTLIST>
</BRANDLIST_ROW>
... // more brandlist rows
</BRANDLIST>
... more rows..
</ROWSET>
Hope this helps,
Murali
null -
Error while trying to choose query parameter Inconsistent input paramete
I got error on PRD while trying to choose parameter before executing BEX query:
101 Inconsistent input parameter (parameter: <unknown>, value <unknown>)
100 Program error in class SAPMSYY1 method: UNCAUGHT_EXCEPTION
Notes:
the same functionality works fine in DEV environment.
the other parameters on query in PRD work fine
the parameter with error based on custom hierarchy
P.S. I heart BEx :]Hello,
This problem has been solved before with notes 1236774, 1151320 & 1264213.
Please check.
Thanks,
Michael -
Query resulting inconsistent results
Hi,
I'm running Oracle 10.2.0.4 and have a partitioned table.
When I run the query
select bse_rem_bse, ben_aly_num from dw_cn2.prs_old
where bse_rem_bse = 3
I'm getting records with null data (i.e. bse_rem_bse is 'null') and the correct data (i.e. bse_rem_bse is 3).
bse_rem_bse is a number type data field.
Can anyone help me understanding the inconsistent result
and how to find what's broken in table.
Thanks
TarunPost your table structure along with data type and some sample data here. Also, post your DB version by executing the following query -
select * from v$version;Regards.
Satyaki De. -
Search Results web part - Custom Query using "Value with a parameter from URL" inconsistent
I have encountered what I think may be a bug, but I am hoping that there is something that I am missing.
Within my search site, I have created a new search results page where I want to customize the "Search Results" web part query. I can add in any number of property and keyword filters (using the "Build Your Query" dialog) without
issue... until I add a filter that uses the QueryString property (the builder dialog calls this "Value with a parameter from URL").
If I use {QueryString.MyParameterX} for filtering, it works beautifully in the query builder dialog. I see the expected results in the search results preview pane, but as soon as I apply the changes things become inconsistent.
If I close/reopen my browser and navigate to my page at http://myaddress/search/Pages/testresults.aspx?MyParameterX=test I see results. If I then refresh the page, I get a "Nothing here matches your search" message. I can then go to
the same address but change one character to an uppercase character and get results. Refreshing that same page again returns "Nothing here matches your search". I can only get search results one time per uniquely cased URL without having
to close/reopen my browser. This behavior was seen on both Firefox and IE.
Finally, I found that if I instead navigate to http://myaddress/search/testresults?MyParameterX=test, it always returns results. This, unfortunately isn't the best solution for me... but it is a solution.
Any insight that anyone can provide is greatly appreciated! I would really like to be able to depend on this working in all logical cases (especially since the search center of other sites is set using the path all the way down to /Pages).
Thanks!Hi, have you been able to solve this issue? I'm getting the same issue and I cant solve it (required CU is installed).
Fabio
Maybe you are looking for
-
About 10 minutes after launching Chrome, the header text turns to hieroglyphics. What's up with that? I have a screenshot...As I am typing this question, my menu has changed to hieroglyphics.
-
[ID CS2 Win]How do you remove entries from the debug TRACE menu
TRACEFLOW is really useful, and over time the entries for have grown but don't shrink automatically. They have now reached a point where there are too many for indesign to cope with "TRACE menu has overflowed allocated action ids". How do I clear the
-
Why backup controlfile to trace doesn't produce the trace file in udump?
Hi there, I recently redirected some of the data files on different drives. I started nomount with pfile and created new controlfile with the new datafile locations. I was able to open db and saw the new location of the db files. But when I trace the
-
Adding extra output modules in AE script
Hi, Is it possible to add extra output modules to a render queue item using an AE script? I can't seem to find the functionality in the guide, and OMCollection is read-only so I can't add using standard array functions. I need additional output modul
-
when i try to update my iphoto in app store it keeps asking me to sign in to my account but i am already signed in can someone please tell me how to fix this.