Sql query to identify transports in dev but not in prod
I use sqlplus to select fields from saperp.e070v so I can compare transports in prod with those in qa. The purpose is to identify those transports that I need to run when I H-copy prod to QA. I'm using this where clause (TRFUNCTION='K' OR TRFUNCTION='W') . Should I look at TRSTATUS? I'd appreciate any recommendations or ideas. I do not have access to ABAP.
Thanks Markus.
Here are the distinct codes I found. Are there any ot these That I need to be concerned about? Is there a Key/Legend for these?
SQL> select distinct trstatus from saperp.e070v;
T
R
D
O
SQL> select distinct trfunction from saperp.e070v;
T
W
R
P
K
D
Q
M
T
X
F
S
T
G
12 rows selected.
SQL> describe saperp.e070v;
Name Null? Type
TRKORR NOT NULL VARCHAR2(20)
TRFUNCTION NOT NULL VARCHAR2(1)
TRSTATUS NOT NULL VARCHAR2(1)
TARSYSTEM NOT NULL VARCHAR2(10)
AS4USER NOT NULL VARCHAR2(12)
AS4DATE NOT NULL VARCHAR2(8)
AS4TIME NOT NULL VARCHAR2(6)
STRKORR NOT NULL VARCHAR2(20)
LANGU NOT NULL VARCHAR2(1)
AS4TEXT NOT NULL VARCHAR2(60)
CLIENT NOT NULL VARCHAR2(3)
SQL>
F
S
T
G
12 rows selected.
SQL> describe saperp.e070v;
Name Null? Type
TRKORR NOT NULL VARCHAR2(20)
TRFUNCTION NOT NULL VARCHAR2(1)
TRSTATUS NOT NULL VARCHAR2(1)
TARSYSTEM NOT NULL VARCHAR2(10)
AS4USER NOT NULL VARCHAR2(12)
AS4DATE NOT NULL VARCHAR2(8)
AS4TIME NOT NULL VARCHAR2(6)
STRKORR NOT NULL VARCHAR2(20)
LANGU NOT NULL VARCHAR2(1)
AS4TEXT NOT NULL VARCHAR2(60)
CLIENT NOT NULL VARCHAR2(3)
SQL>
Similar Messages
-
SQL query can be executed through TOAD but not through Discoverer
Hallo, everybody:
Got another problem. A SQL query can be executed through TOAD, but when I want to execute it by a worksheet of Discoverer Plus, it always shows there is no data.
PS: I copied this query from Discoverer Plus to TOAD, which means, this query is generated through the Discoverer. Does anybody know about how could it be?
Thank you.
GengHi,
If you are able to get data in TOAD with the same user credential as that of Discoverer Plus then it will implies an issue with Discoverer.
Else it is privilege issue , your TOAD user has select privilege to the base objects (tables/views etc) where as your Disoverer used does not.
Compare the privileges granted to these 2 users and you can narrow done to the issue .
Thanks,
Sutirtha -
SQL Query if or case omit fields but not line.
I have the below SQL Query my goal is to not show Aging or Storage Date if QTY is greater than 0.
I know I can omit the line but I still want to show just not those two fields is this possible?
Select sl.SKU, sl.LOC, (editdate) AS "Storage Date", CAST(sysdate-editdate AS DECIMAL(10,2)) AS Aging, sl.QTY, sl.QTYALLOCATED
From skuxloc sl
Where sl.SKU in ('315A6112-29','315A6112-33')
This is what I'm looking for:
Work Smarter Not HarderAre you working with OracleSQL, There is no sysdate in SQL Server.
Select sl.SKU, sl.LOC,
case when sl.QTY =0 then '' else editdate end AS 'Storage Date',
case when sl.QTY =0 then '' else CAST(sysdate-editdate AS DECIMAL(10,2)) END
AS Aging,
sl.QTY, sl.QTYALLOCATED
From skuxloc sl
Where sl.SKU in ('315A6112-29','315A6112-33')
If you are working with Oracle, You can try decode.
http://docs.oracle.com/cd/B19306_01/server.102/b14200/functions040.htm
http://www.dba-oracle.com/t_decode_function.htm
--Prashanth -
Case insensitive search working in dev but not in prod
Hello All,
I had set the CASE_SENSITIVE_CHARACTER_COMPARISON parameter as OFF in NQSConfig.ini file for enabling the case insensitive search in OBIEE.
This setup is letting me do the case insensitive search in Dev env but the same doesnt work in prod env. I tried pointing both prod and dev rpd to same prod db.
With same db also, case insensitive search doesnt work in prod env.
Any idea for which other configuration I can look for.
Thanks in advance.Thanks Stijin. I had seen this post earlier. Case insensitive search works fine after setting the value for NLS_SORT and NLS_COMP in production RPD but the other report with distinct clause starts failing. Not sure about the reason.
Saw this comment from you in that post:
The only compromise solution we could find was to "cache" the column value we wanted to use in insensitive searches. These were mainly used in "show all choices" while setting prompts. Other than that there isn't much you can do in an Oracle database.
Can you please tell me how to implement the above. -
Sql query to identify all the responsibilities attached to a form
(oracle - apps) Can anyone help me by giving a sql query to identify all the responsibilities attached to a form and corresponding menu should not be in the menu exclusion.
Thanks in advance
VenkiBump
-
Specific extractor works in DEV but not in QUAL
Hello Everybody
I have new problem : I created a specific extractor ZCRM_SRV_PROCESS_I based on specific FM based on RSAX_BIW_GET_DATA_SIMPLE.
This extractor have to retrieve specific fields of Service Order Item (linked document type BUS2000116)
In DEV it works fine for loading INIT & DELTA
In QUAL, loading INIT does not work but loading works for some records...
Loading finish with following message :
System Response
Caller 09 contains an error message.
Further analysis:
The error occurred in Extractor .
Refer to the error message.
Job is cancelled in source system with small text :
19.04.2011 14:51:05 Job started
19.04.2011 14:51:05 Step 001 started (program SBIE0001, variant &0000000022545, user ID ALEREMOTE)
19.04.2011 14:51:05 Asynchronous transmission of info IDoc 2 in task 0001 (0 parallel tasks)
Do you know why it works in DEV but not in QUAL ?
Thank you
Cyril
Edited by: cyril meslin on Apr 20, 2011 9:53 AMThere is no problem of authorization. In RSA3 it's ok for some records but too long for full of records.
In fact, my FM make a first select after to be determined init or delta mode :
IF i_updmode = 'D'.
SELECT i~guid h~object_id h~guid h~process_type
INTO TABLE st_zcrmt_bw_i
FROM crmd_orderadm_h AS h
INNER JOIN crmd_orderadm_i AS i ON h~guid = i~header
WHERE h~object_id IN lr_object_id
AND h~changed_at >= lv_timestp
AND i~guid IN lr_item_guid
AND ( i~product_kind <> 'X' OR i~product_kind <> '' )
AND ( h~process_type = 'ZSOL'
OR h~process_type = 'ZSPE'
OR h~process_type = 'ZSVO'
OR h~process_type = 'ZSVT' ).
ELSE.
SELECT i~guid h~object_id h~guid h~process_type
INTO TABLE st_zcrmt_bw_i "PACKAGE SIZE I_MAXSIZE
FROM crmd_orderadm_h AS h
INNER JOIN crmd_orderadm_i AS i ON h~guid = i~header
* UP TO I_MAXSIZE ROWS
WHERE h~object_id IN lr_object_id
AND i~guid IN lr_item_guid
AND ( i~product_kind <> 'X' OR i~product_kind <> '' )
AND ( h~process_type = 'ZSOL'
OR h~process_type = 'ZSPE'
OR h~process_type = 'ZSVO'
OR h~process_type = 'ZSVT' ).
ENDIF.
Then FM CRM_ORDER_READ is running for 500 records to retrieve header data :
CALL FUNCTION 'CRM_ORDER_READ'
EXPORTING
iv_no_auth_check = abap_true
it_header_guid = it_guids "500 records
it_requested_objects = lt_requested_objects
IMPORTING
et_orderadm_h = lt_orderadm_h
et_service_os = lt_service_os.
Then this FM is running for 10 records for item data (max 10 because FM CRM_ORDER_READ does not work for more records) :
CALL FUNCTION 'CRM_ORDER_READ'
EXPORTING
iv_only_spec_items = abap_true
it_item_guid = it_guids "10 records
it_requested_objects = lt_requested_objects
IMPORTING
et_orderadm_i = lt_orderadm_i
et_sales = lt_sales
et_appointment = lt_appointment
et_status = lt_status
et_text = lt_text
et_subject = lt_subject
et_doc_flow = lt_doc_flow
et_customer_i = lt_customer_i
Perhaps if I succeeded to improve SELECT & call of CRM_ORDER_READ, it would be better but I don't know how to do... -
In KSB1 one of the field is showing up in DEV but not in QA or PRD
Hello,
One of the standard field which is showing up in DEV but not in QA or PRD. After excuting a transaction KSB1, One can change the layout and add or hide a field from a given options. We can see that field in DEV, but not in QA and PRD. This is a standard report and we checked in table v_tkalv, it is same in DEV and QA
Thanks for your help
RickI don't have access to a 6.0 system at the minute, but I'm pretty sure order isn't a standard field in KSB1. It would be in KOB1, of course, but the K*B1 transactions are for displaying actual line items recorded on various kinds of cost objects.
In the reporting scenario, how's the order factor in? Did it receive statistical postings, or something? -
Query performed well in dev but hanging on prod
Hi DBAs,
Urgent help is required on this issue.
One of my sql query performed well in dev server, but now for 1 week it is hanging in prod server so,
* How can i proceed to troubleshoot the problem.
* What are areas i need to look for , and for what ?
Regards
AsifAre they both the same version of databases?
How recent is your dev data (if possible update your dev from prod)?
If prod to dev copy is not possible
....AND stats for both db are up-to-date
....AND big differnce in db size for dev & prod
....=> You can copy prod's stats and import to dev then run your query on dev to localise the issue then you can start tuning the query on dev. -
Query performs well in dev but hanging on prod
Hi DBAs,
Urgent help is required on this issue.
One of my sql query performed well in dev server, but now for 1 week it is hanging in prod server so,
* How can i proceed to troubleshoot the problem.
* What are areas i need to look for , and for what ?
Regards
AsifThere could be plenty of reasons to lead this behaviour to occur, sicnce you diden't come up with valid inputs, one really can not offer a pin point advise.
in that case, I would simply recommened you to post the output of explain
plan after making sure your stats are up to date.
hare krishna
Alok -
Web template works in Dev but not in Q
We have a web template includes 10 queries. First I transported 10 queries from Dev to Q and we executed each one. All worked. Then I transported this template. Transport was successful but it return a error message when it gets execute for few seconds.
One thing I don't understand is it contains many Template items but it only show part of Items when I collected. Now I am trying to collect each template items but I am unable to find missing items from Bex Web Items list. Why is that?
Here is the error message:
The initial exception that caused the request to fail was:
Termination message sent
ABEND RSBOLAP (000): Program error in class SAPMSSY1 method : UNCAUGHT_EXCEPTION
MSGV1: SAPMSSY1
MSGV3: UNCAUGHT_EXCEPTION
com.sap.ip.bi.base.application.exceptions.AbortMessageRuntimeException: Termination message sent
ABEND RSBOLAP (000): Program error in class SAPMSSY1 method : UNCAUGHT_EXCEPTION
MSGV1: SAPMSSY1
MSGV3: UNCAUGHT_EXCEPTION
at com.sap.ip.bi.base.application.message.impl.MessageManager.addMessageInternal(MessageManager.java:148)
at com.sap.ip.bi.base.application.message.impl.MessageManager.addMessage(MessageManager.java:113)
Details: Full Exception Chain
Messages
ABEND: Program error in class SAPMSSY1 method : UNCAUGHT_EXCEPTION
ABEND: System error in program SAPLRZI0 and form RSZ_FORM_AND_VAR_TAB_FILL-02- (see long text)
Can anyone help? Thank you in advance!Hi,
You have to collect all the WEB items toos, it should be under the WEB ITEM in transport connection. Try collecting them again . Hope you have transported all the dependant Query elements like variables, User exits variable code if any.
Hope it helps,
Cheers,
Balaji -
Custom bsp Iviews work in dev but not in qas?
Hi All,
We're using R/3 4.7, ESS 50.4, MSS 60.1.20.
We have developed a number of custom bsp iviews that work perfectly fine in dev but when we transported to qas, no data is displayed. The labels in the bsp are being displayed so we know that the bsp is working.
We use epcf to listen for the employee number in the bsp's. It is configured the same in both dev and qas but in qas the bsp is not picking up the employee number and therefore is displaying no data. When you click on susbequest employees in the team viewer, nothing happens (bsp should reload).
The only difference is that the portal dev and the bsp's reside on the same server but when we go to portal qas, it is now on a different server to the bsp. We have relaxed the domain, so that the server name has been removed from the domain name but still to no avail.
If anyone can help at all, i'd really appreciate it, as i'm at a loss as to what to do next.
Many thanks,
Liz.Hi,
Seems that there is:
1. something wrong with the System Object or it's definition..
OR
2. someone used a server/hostname as a "constant" instead of a "variable"
OR
3. the Portal and Backend are not in the same domain or the configuration is not with Fully Qualified Domain Name
Hope this helps you to narrow it down or even find the issue.
Good Luck,
Benjamin Houttuin -
Oracle 10g - query is very slow in jdbc but not in other tools
I'm using PreparedStatement to execute a query with some parameters.
in sql developer, it just spends 12 seconds but in jdbc, it's around 140 seconds.
I disabled "_optim_peek_user_binds" parameter already but it didn't help.
alter session set "_optim_peek_user_binds"=false;Please mark this thread ANSWERED and repost it in the JDBC forum.
https://forums.oracle.com/forums/category.jspa?categoryID=288
When you post provide your 4 digit Oracle version, Java version and JDBC jar name and version as well as the code you are using. -
SQL*Plus variable assignment works for 8i but not 9i
We have scripts that connect to each database on the box and perform database tasks nightly. The scripts first set the environment then connects to each database with SQL*Plus. This works for 8i but fails in the recently created 9i environment. (Unix Solaris environment)
Because the SQL*Plus connection appears in many areas in the scripts, we assign the following connection string to a variable:
SQLPLUS="/usr/oracle/product/9.2.0/bin/sqlplus -s 'xxx/xxxxxx@xxxx as sysdba'"
Export SQLPLUS
echo "$SQLPLUS"
(This echo out correctly: /usr/oracle/product/9.2.0/bin/sqlplus -s 'xxx/xxxxxx@xxxx as sysdba')
It fails when the script calls the assigned variable:
$SQLPLUS <<-EOF
with the following error:
Usage: SQLPLUS [ [<option>] [<logon>] [<start>] ]
where <option> ::= -H | -V | [ [-L] [-M <o>] [-R <n>] [-S] ]
<logon> ::= <username>[<password>][@<connect_string>] | / | /NOLOG
<start> ::= @<URI>|<filename>[.<ext>] [<parameter> ...]
"-H" displays the SQL*Plus version banner and usage syntax
"-V" displays the SQL*Plus version banner
"-L" attempts log on just once
"-M <o>" uses HTML markup options <o>
"-R <n>" uses restricted mode <n>
"-S" uses silent mode
However, if I remove the SQLPLUS variable assignment and changed all occurrence of
$SQLPLUS <<-EOF to
/usr/oracle/product/9.2.0/bin/sqlplus -s 'xxx/xxxxxx@xxxx as sysdba' <<-EOF
Then the script runs successfully. But this solution is cumbersome.
Any ideas as to how to have the script work with assigning the SQLPLUS variable????
Any help is appreciated.I has an immediate suspicion it might be related to the issue
mentioned in
http://otn.oracle.com/support/tech/sql_plus/htdocs/sub_var2.html#2_7
but this proved wrong: the SP2-306 still occurs in the latest
SQL*Plus.
I wonder what version of 8i you had working? With an old SQL*Plus
8.1.7.0 my connection failed the same as in 9.2 and 10i.
My solution was to do:
SQLPLUS='sqlplus -s'
UNPW='/ as sysdba'
$SQLPLUS "$UNPW" <<EOF
EOFThis worked in 9.2.0.5, 10.1.0.2 and 8.1.7.0.
One common security risk on UNIX remains: putting the username and
password on the command line. On some systems a "ps" command will
show the password to any user. If OS authentication cannot be used
for connection, perhaps putting the username/password in the SQL
script may be more secure?
A final note is that in SQL*Plus 10g, no quotes are needed around
AS SYSDBA, i.e.
sqlplus / as sysdba works from the OS prompt, whereas in 9.2 you need to do
sqlplus "/ as sysdba"This makes a solution easy:
SQLPLUS="/usr/oracle/product/10.1.0/bin/sqlplus -s xxx/xxxxxx@xxxx as sysdba"-- CJ -
SQL select who works in 4.7 but not 4.6 ?
Hi all,
I got the following select statement who works fine on a R/3 4.7 but not in 4.6B (syntax error), any idea ?
SELECT DISTINCT s~idnrk SUM( s~menge ) m~matnr
INTO (stpo-idnrk, stpo-menge, mast-matnr)
FROM mast AS m INNER JOIN stpo AS s
ON m~stlnr = s~stlnr
WHERE ( m~werks = '0101'
AND m~stlan = '2'
AND s~idnrk <> space )
OR
( m~werks = space
AND NOT EXISTS ( SELECT *
FROM *mast AS m2
WHERE m2~matnr = m~matnr
AND m2~stlan = m~stlan
AND m2~werks ='0101')
AND m~stlan = '2'
AND s~idnrk <> space
GROUP BY s~idnrk
m~matnr.HI,
try this query now and look for the bold lines.
SELECT DISTINCT s~idnrk SUM( s~menge ) m~matnr
<b> INTO (stpo-idnrk,stpo-menge,mast-matnr)</b>
FROM mast AS m
INNER JOIN
stpo AS s
ON m~stlnr = s~stlnr
WHERE ( m~werks = '0101'
AND m~stlan = '2'
AND s~idnrk <> space )
OR
( m~werks = space
AND NOT EXISTS (
SELECT * FROM *mast AS m2
WHERE m2~matnr = m~matnr AND m2~stlan = m~stlan
AND m2~werks ='0101')
AND m~stlan = '2'
AND s~idnrk <> space )
GROUP BY s~idnrk m~matnr.
<b>ENDSELECT.
</b>
REgards, -
SQL patch mismatch: Installed in the PDB but not in the CDB - how to correct?
I have a 12.1.0.1 database in which I wanted to migrate a number of PDBs to AL32UTF character set. To do this I created a second (temporary) database with the correct characterset, unplugged and re-plugged each PDB and ran the DMA U to migrate the PDBs - all went well.
I then dropped the first database and built another again with the correct characterset.
When I unplug and replug the PDBs from the temporary to the new database I get the following PDB violation:
PDB_ACPT_CLONE SQL patch 19648840 mismatch: Installed in the PDB but not in the CDB.
This patch had been applied to the original database and then rolled back before the temporary and new databases were created.
datapatch shows:
C:\oracle\product\12.1.0\dbhome_1\OPatch>datapatch -verb
SQL Patching tool version 12.1.0.1.0 on Wed Jan 21 09:43
Copyright (c) 2012, Oracle. All rights reserved.
Connecting to database...OK
Determining current state...
Currently installed SQL Patches:
PDB CDB$ROOT:
PDB PDB$SEED:
PDB PDB_ORCL12C:
PDB PDB_ACPT_CLONE:
Currently installed C Patches:
For the following PDBs: CDB$ROOT
Nothing to roll back
Nothing to apply
For the following PDBs: PDB$SEED
Nothing to roll back
Nothing to apply
For the following PDBs: PDB_ORCL12C
Nothing to roll back
Nothing to apply
For the following PDBs: PDB_ACPT_CLONE
Nothing to roll back
Nothing to apply
SQL Patching tool complete on Wed Jan 21 09:43:44 2015
C:\oracle\product\12.1.0\dbhome_1\OPatch>
PDB_ORCL12C was created in the new database.
The moved PDB is now stuck in RESTRICTED mode.
Any ideas on how to resolve this?Are you sure all PDBs were open when the patch was applied?
The more common issue is when one version of Apex is installed in the root and a different version installed in a PDB and the PDB is plugged in.
Maybe you are looking for
-
Need help with Zen Micro and Win
Hi, I bought a Zen Micro 2 days ago and I can't get it to work with my Win XP machine. I did what was told in the manual: install the software first then plug the player. When I plug the player in I get the following message: Found New Hardware: Zen
-
My ipod nano goes into sleep mode automatically and the music pauses
Hi, The music on my Ipod Nano 6th, automatically stops after a minute. I have to go to the sleep/wake up button, then press play to start the music again. Is there any way to stop this. Is this happening because I have activated the watch on my home
-
Problem with keeping session active in WEB
Hi, We are using only web repoting and when these web reports are excuted and left idle for some time then any further operation on the report output after 10 mins give out a error and doesnt proceed further. As i understnd this has got something to
-
Can i use a wwe brawl stick on my macbook pro?
I recently bought a Mad Catz xbox 360 Brawl Stick and was told it would work with my macbook pro. The controller shows up in the system profilier in the USB Bus though none of the programs I am using is reading it. It does mention the device is not
-
How do I get my Itouch to unlock?
Unable to slide to unlock or slide to power off, unresponsive. Any suggestions?