How to find the sequence for a table.
Hi Everyone,
I've got plenty of sequences. How can I identify that what are the sequences acting on a table?
Regards,
BS2012.
Greg.Spall wrote:
In my last job, we used the table/column comments to point to the sequence.
so:
CREATE SEQUENCE seq_test1;
CREATE TABLE my_table
(id number);
COMMENT ON TABLE my_table IS 'Test table for demonstration purposes on OTN';
COMMENT ON COLUMN my_table.id IS 'Primary Key, sequence populated: seq_test1';... or something like that :P
But yeah, outside of that, good luck if you have no documentation!Of course, ALL of the 'code search' solutions put forth are assuming the references will be found in PL/SQL packages. That ignores the potential that the code could be located somewhere else, like application code that exists OUTSIDE of the database .... Bottom line is that there is no 100% one-size-fits-all method for automating the discovery of relationships between tables and sequences.
Similar Messages
-
How to find the list of existing tables in a schema using DB link?
Hi
I know how to find the list of existing tables in a schema using the following query
SQL> select * from tab;
but, how to list the tables using a DB link?
For Example
SQL> select * from tab@dblink_name;
why this doesn't work?
Pl advice me
Thanks
Reddy.ORA-02019: connection description for remote database not foundHave you used this database link successfully for some other queries?
The error posted seems to indicate that the DB Link is not functional at all. Has it worked for any other type of DML operation or is this the first time you ever tried to use the link? -
How to find the column name and table name with a value
Hi All
How to find the column name and table name with "Value".
For Example i have value named "Srikkanth" This value will be stored in one table and in one column i we dont know the table how to find the table name and column name
Any help is highly appricatable
Thanks & Regards
Srikkanth.M2 solutions by Michaels (the latter is 11g upwards only)...
michaels> var val varchar2(5)
michaels> exec :val := 'as'
PL/SQL procedure successfully completed.
michaels> select distinct substr (:val, 1, 11) "Searchword",
substr (table_name, 1, 14) "Table",
substr (t.column_value.getstringval (), 1, 50) "Column/Value"
from cols,
table
(xmlsequence
(dbms_xmlgen.getxmltype ('select ' || column_name
|| ' from ' || table_name
|| ' where upper('
|| column_name
|| ') like upper(''%' || :val
|| '%'')'
).extract ('ROWSET/ROW/*')
) t
-- where table_name in ('EMPLOYEES', 'JOB_HISTORY', 'DEPARTMENTS')
order by "Table"or
SQL> select table_name,
column_name,
:search_string search_string,
result
from cols,
xmltable(('ora:view("'||table_name||'")/ROW/'||column_name||'[ora:contains(text(),"%'|| :search_string || '%") > 0]')
columns result varchar2(10) path '.'
where table_name in ('EMP', 'DEPT')
TABLE_NAME COLUMN_NAME SEARCH_STRING RESULT
DEPT DNAME ES RESEARCH
DEPT DNAME ES SALES
EMP ENAME ES JONES
EMP ENAME ES JAMES
EMP JOB ES SALESMAN
EMP JOB ES SALESMAN
EMP JOB ES SALESMAN
EMP JOB ES PRESIDENT
EMP JOB ES SALESMAN
9 rows selected. -
How to find the Ranges for a field ?
Hello All,
Can anyone tell me how to find the ranges for a field.
<b>1</b>, i.e say I want the Ranges Structure for the field LIFNR.
The ranges structure for this is "<b>RANGE_LIFNR</b>".
This I used in my Program since I know it previously.
But now I want the ranges structure for the field <b>VBELN (Delivery Document).</b>
I don't know what is it !!!!!
<b>2</b>, Is there any procedure to know the ranges structure for a particular field ?
Regards,
Deepu.KHi Deepu,
Using 'Where used list' you can able to find out RANGES tables.
For VEBLN range table is --> CRM_AC_ASSIGN_VBELN
If you using a program defined as shown below.
DATA: r_vbeln type ranges of vbeln.
The above statement also creates ranges structure in Runtime.
Procedure finding range table structures
go to SE37 -> Enter domain or dataelement value
Go to where used list --> search for 'Structures'
After getting all structure --> Click 'SEARCH' butoon in tool bar --> Search for 'RANGES' word
You can get all ranges tables in the search window
If helps plz reward points.
Regards
Bhupal Reddy -
How to find the Extracstructure for 0PLANT_ATTR for RSAP0001 for EXIT_SAPL
Hi ,
how to find the Extracstructure for 0PLANT_ATTR for RSAP0001 for EXIT_SAPLRSAP_002 ?
I need to extend the Datasource 0PLANT_ATTR with RSAP0001 in EXIT_SAPLRSAP_002.
In Table ROOSOURCE I do not have an entry for 0PLANT_ATTR.
How can I identify the extractstructure for 0PLANT_ATTR ?
Thanks !!!
MartinHi Martin
Go to RSA6 and do a find for Plant attr and from there you will find the extract structure: BIW_T001WS.
You can add the fields here and then using CMOD/Exits you can write the code to populate the data.
Thanks
Kalyan -
How to find the patches for perticular concurrent program
HI
How to find the patches for perticular concurrent program. suppose for one concurrent program we create the patch and applied now i want know the which patch applied for perticular concurrent program through back end.
Thank'sQuery the concurrent program in Sysadmin responsibility.
Note the concurrent executable.
Query the concurrent executable in Sysadmin.
Note the file name.
If it is a package, open the package in TOAD and note down the file name.
If it is a report/form, open it in form developer and note down the file name.
Go to patch find screen in metalink. In the advanced search screen, enter the file name and you will see patches that contain it.
Hope this answers your question
Sandeep Gandhi
Independent Consultant
513-325-9026 -
HOw to find the text for PERSK field in infotype 0001
hi all
HOw to find the text for PERSK field in infotype 0001Hi
T503T : contained the similar informative text for PERSK . read this for T503T-PTEXT.
..lakhan -
How to find the deleted data in tables
guys,
how to find the deleted data in tables example: i want to see whether anyone deleted data in MB5B report tables like mbew, etc.,
regards,Hi,
MBEWH is actually the history table of MBEW. It will record all the changes. As I have told you earlier if you have deleted the record dirctly from the table then it will not come even in the table MBEWH
That means no changes have been made.
regards -
Hello. I'd like to get learning and become certified. What should I do and how to find the link for staring education?
Hello there, g0ddess.
The following link proves to be a great resource to get started with Apple Training and Certification:
Training and Certification
Thanks for reaching out to Apple Support Communities.
Cheers,
Pedro. -
How to find the SteroMixer for my HP TouchSmart PC
I just need to know how to find the SteroMixer for my HP TouchSmart. I did read previous concern and also followed the steps but under my hardware it shows this HDAUDIO\FUNC_01&VEN_11D4&DEV_194A&SUBSYS_103C2A8E&REV_1004 and this HDAUDIO\FUNC_01&VEN_11D4&DEV_194A&SUBSYS_103C2A8E.
I just need to know which do I use so that I will be able to add music to the CamStudio...
Maybe this helps.
http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01461692&cc=us&dlc=en&lc=en
or try them here.
http://h30434.www3.hp.com/?lc=en&cc=us
http://answers.microsoft.com/en-us/windows
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows]
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights. -
How to find the workflow for Change Request for the PO's
Hi All,
We have a PO which is pending and we can't receipt it again nor make payment on this. After checking the Approval history for that PO we found that the change request has been made. The change request was to change the amount to be paid to R39196 instead of R58237.00. We don't know where to check the workflow for the change request to identify the cause.
what i need to know is how to find the workflow for that change request? The other workflows can be checked using the po_header_id for the PO's but i am confused with the change request workflow
Your input will be highly appreciated.
Thanks in advance
Rgds,
SoniaFor 11.5.10.2 run this query to determine the keys to search on:
Select wf_item_type, wf_item_key from APPS.po_change_requests where document_type = 'PO' and Document_num = 'put-PO-number-here'
Then use the keys returned by the query to look up the Workflow in
Workflow Administrator Web Applications / Administrator Workflow / Status Monitor
Search using the results returned in fields "Type Internal Name" and "Item Key" in Status Monitor
The query for change requests on a specific Requisition would be:
Select wf_item_type, wf_item_key from APPS.po_change_requests where document_type = 'REQ' and Document_num = 'put-Req-number-here' -
How to Find the Runtime for any workitem.
Hi,
Could you please tell how to find the runtime for any workitem.
Thanks,
Bhanu Gattu.Hi,
I think, your query is pertaining to Workflow.
Please explain your requirement little more.
If you need Runtime Analysis: Then the transaction Code: SE30 must be used.
Thanks.
RamaniN
Edited by: Ramani Nagarajan on May 21, 2009 12:33 PM -
How to find the Datasources for the given table names ?
Hi All,
I have an urgent requirement where I ned to find the names of BW Datasources, created for the given table names.
Both the tables and Datasources are in BW system only. I can see the table in SE11 but I am unable to find its associated Datasources in the 'Where Used List'.
Is there any method ?
Will assign points to satisfactory answers.
Regards,
SrinivasHi,
Check this thread on how to find the DS.
I have the field name, please help me find the data source.
Once you identify your DS you find which all Data targets are fed by trying to see the " Show data flow" in RSA1 for this data source.
Hope this helps.
Thanks,
JituK
Edited by: Jitu Krishna on Apr 30, 2008 11:52 AM -
How to find the list of all tables populated
How to find the list of tables populated in the implentation of a particular company. DD02L contains all the tables SAP having. But i want only which are configured for a particular company.
Also how to find the list of reports used by all users in a particular company. TSTC contains all transactions. But i require only reports used by a particular company.Hi Mohamed
You use Solution Manager to do the comparison for you. There are some nice features that will highlight all your customised coding. Have a look at the SolMan resources on the Support Portal e.g. using SolMan for upgrade comparisons.
Rgards
Carl. -
How to find the relation between that tables
Hi,
I have to get the data from different tables but I dont have any table relation ship. So If any body can help me to get that relation ship that will be very helpful for me.
my tables are
LFA1
LFB1
LFC1
RFSDO
BSIK
Thanks
Imran>
SURINDER SINGH OBEROI wrote:
> Hi,
>
> LFA1-LIFNR = LFB1-LIFNR = LFC1-LIFNR = BSIK- LIFNR
> LFB1-BUKRS = LFC1-BUKRS = BSIK-BUKRS
> LFC1-GJAHR = BSIK-GJAHR
> LFC1-ERDAT = BSIK-AUGDT
>
> Cheers,
> Surinder
You think, you can fetch accurate data with the above mentioned linkages?
Oh btw, the question i believe the question was How to find the relation....
pk
Maybe you are looking for
-
Error while creating physical inventory document with zero count
Hi, I am trying to create a physical inventory document for a material that has zero stock and that is not batch managed but I am geting an error as below. "Item 001: No batches that can be included in phys. inv. exist.(Message no. M7701)" This error
-
Variance between GL inventory account balance and OPM inventory value
Hi everyone, I am using OPM actual costing method (PPAC), I have set profile option GMF: Book Allocations using current period basis to YES. Assume that we have a product x with openning balance Quantity = 20 TONs and Vale = 100$ (Unit cost = 5$). As
-
Imac 10.5 windows XP disk just ejects
Giving up on getting Windows to work on my Mac. Tried VM Fusion and couldn't get install. Now with just Bootcamp I can do the partition (have removed and redone it several times) but when I put in my Windows disk it just grinds a while and spits out
-
Emailing pictures in PSE7 after upgrading to Windows 7
I just upgraded to Windows 7 64bit Home Premium from Vista 64bit Home Premium. It looks like my PSE7 files moved over without any problem even though I haven't had time to do much with it yet. I am howevr looking for a solution with the email. I f
-
Slapd_poll () timed out
Hello there, I see the below errors in ODSEE11gR1 version on Linux server, can some one tell me what is the reason for this error? error log: [18/Jul/2011:11:54:22 -0400] - DEBUG - conn=-1 op=-1 msgId=-1 - slapd_poll(18) timed out [18/Jul/2011:11:54: