To find out " dot" using substr in oracle
Hi ,
I would like to find "Dot" between Schemaname and table name using substring in Oracle . I am using oracle 9i.I can't use Regexp in Oracle 9i
Schemaname .tablename
Table name can be any no of characters
Schema name also can be any no of characters
Regards,
User
Are you looking for this?
satyaki>
satyaki>select * from v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for Linux: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
Elapsed: 00:00:00.01
satyaki>
satyaki>
satyaki>
satyaki>declare
2 str varchar2(30);
3 ctr varchar2(30);
4 begin
5 str := 'SCOTT.EMP';
6
7 ctr := 'SCOTT';
8
9 if ctr = substr(str,1,instr(str,'.')) then
10 dbms_output.put_line('User Matches....');
11 else
12 dbms_output.put_line('User Does Not Matches....');
13 end if;
14 end;
15 /
User Does Not Matches....
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.01
satyaki>
satyaki>declare
2 str varchar2(30);
3 ctr varchar2(30);
4 begin
5 str := 'SCOTT.EMP';
6
7 ctr := 'SCOTT';
8
9 if ctr = substr(str,1,instr(str,'.')-1) then
10 dbms_output.put_line('User Matches....');
11 else
12 dbms_output.put_line('User Does Not Matches....');
13 end if;
14 end;
15 /
User Matches....
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.00
satyaki>Regards.
Satyaki De.
Similar Messages
-
How to find out the used space and free space in the DB for attachments
Hi,
In CRM 5.2 web UI, we can save a transaction by saving attachments like work documents or text files.
Could someone help me find out the used space, free space, maximum capacity on the CRM DB for these attachments.
Thanks & Best Regards,
Ramesh.Hi,
check with below table
TNAPR --- Processing programs for output
and NACE Transaction code
NACE -- out types
Regards,
Madhu -
Has your debit/credit card been charged for unauthorized APPLE Itunes purchases? How do you find out who used it?
Max OSX 10.6.8, iTunes 11.1
I had a similar problem: I wanted to synch my playlist to my iphone. I like to have my playlist sorted by genre. But under each genre, albums are not sorted by the track numbers. This is a problem, especially when I am listening to club mixes when the DJ smoothly transitions from 1 track sequentially to the next one. Under the properties of each audio file, the Track Numbers and Disc Numbers are already there.
My perfect solution was to turn On Sorting - Sort Album under View>Show View Options. Then, select all the songs in that album (Shift click, Cmd click, etc) , and Edit multiple item information (Cmd I). You will see Info-Video-Sorting-Options buttons. Click on Sorting. Then, under Sort Album, Enter the name of the album. Then OK.
You should now have the playlist sorted by Genre, then each album individually sorted by track numbers. On your playlist you should see, if you scroll right, the column added called "Sort Album".
Hope this helps. -
From my session how to find out the version of my oracle client ?
From my session how to find out the version of my oracle client ?
Thanks in advanceClient version?
BTW, trying all forums? -
Find out query using specific DB link
Hello,
Environment: 11G and Ksh script
Currently our Client is upgrading to new environment, so I need to find out which query in our Database use DB link to pull data from that client will be impacted.
for example,
select * from table_1@DB_link_1All our SQL are embedded in UNIX script, so I use command line to search any scripts contain '@DB_link_1' but not find anything.
is it possible to search any dynamic view or any suggestion to search inside ORACLE database to see if any query using this 'DB_link_1'? I tried 'dba_db_links' but this does not show which query is using which DB link.
Thanks,
Thomasfrank wrote:
Hello,
Environment: 11G and Ksh script
Currently our Client is upgrading to new environment, so I need to find out which query in our Database use DB link to pull data from that client will be impacted.
for example,
select * from table_1@DB_link_1All our SQL are embedded in UNIX script, so I use command line to search any scripts contain '@DB_link_1' but not find anything.
is it possible to search any dynamic view or any suggestion to search inside ORACLE database to see if any query using this 'DB_link_1'? I tried 'dba_db_links' but this does not show which query is using which DB link.
Thanks,
Thomashttp://download.oracle.com/docs/cd/E11882_01/server.112/e17110/statviews_1068.htm#REFRN20053
REFERENCED_LINK_NAME VARCHAR2(128) Name of the link to the parent object (if remote)
" -
How do I find out the version / edition of Oracle ?
Hi,
I guess the version installed in the box is Oracle 8i (8.1.7). But I am not too sure about it and also I found to find out which edition it is. How can I find out ?
Please let me know.
Regards,
HarishHi,
Thanks for all your assistance.
I found out the information when I logged in to the Oracle SQL Plus -
Connected to:
Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
With the Partitioning option
JServer Release 8.1.7.0.0 - Production
Thanks,
Harish
T -
How to find out where used list of Table or T-code
Dear ABAP gurus
I know many of you have done this several times.
wish to find out which Transaction code INSERTs the data into the table IHPA.
I did the where used list - SE11 ( for specific key work called INSERT ).
Used the Table called D010TAB which has some information.
Vise versa if I know a T-CODE , how to know which tables it read & Modify...
any better procedure than spending hours in research...
I found similar custom program to find USER EXITS ...here..., looking soething similar...
[http://wiki.sdn.sap.com/wiki/display/Snippets/FindUser-exits%2CBADIs%2CBTEs%2CEtcbyTCodeorProgram]
thank you for your help
Edited by: Raj Anvesh on Aug 3, 2011 9:58 PMHi Anvesh,
Maybe the data INSERTION is happening by BAPI,
So just try to look for the concerned BAPIS.
ECP_SRV_PARTNERS_IHPA
IREP1_IHPA_ADRNR_PRE_FETCH
IREP1_IHPA_ADRNR_READ
MAP2E_DIIHPA_TO_PARTNER
MAP2E_IHPAVB_BAPI2080_NOTPARTE
MAP2E_IHPAVB_TO_BAPI_IHPA
MAP2E_IHPA_BAPI2080_NOTPARTNRI
MAP2E_IHPA_M_BAPI2080_NOTPNRI
MAP2I_BAPI2080_NOTPARTNRI_IHPA
MAP2I_BAPI_IHPA_TO_IHPA
PM_DB_FILL_DIIHPA
PM_PARTNERCOPY_FILL_XIHPA
PM_PARTNER_DELETE_XIHPA
PM_PARTNER_GET_XIHPA
PM_PARTNER_PUT_XIHPA
PM_PARTNER_REFRESH_XIHPA
these are the bapis which are dealing with the IHPA table,
Segregate them as needed and then go to the std program
Revert for further clarification.
Thanks
Sri -
How to find out the date when an oracle database is upgraded
Hi,
I would like to know the date when an oracle database is upgraded (for example 10.2.0.4 to 11.2.0.3).
Can you help me to find out these details.
Thanks,
Sarayuuser13312943 wrote:
Hi Ed and SB,
Thanks for your replies. How about this option?
Let us assume I am interested in checking when my database is upgraded to any 11g version.
Will this query help?
select min(first_usage_date) from dba_feature_usage_statistics where version like '11%';
I understand this may not be a generic solution , but with this idea I may be able to build up a query to get the result.
Thanks,
Sarayu
How is it that you or nobody knows when the DB was upgraded?
I would have expected a formal testing & upgrade plan.
Does the organization practice safe software & utilize any source code repository?
Does everyone suffer from amnesia?
How could a MAJOR database upgrade slip by everyone who should care about such a detail? -
How to find out the primary key of oracle apps tables
Hii,,
My Question is How to find the primary key in the apps table...Is there any Query or other way to find out???
for eg.
I want to find out the primary key of the AP_INVOICES_ALL table...just tell me how can i get the primary key of this table.
I am currently using toad for the query..
Please guide me...you can define the primary key when you create table
or add the primary key after the table creation by 'ALTER TABLE ... ADD constraint pk_nme primary key (col1, col2)';
you could use below sql to check the detail of primary key:
1) check out the table definition directly:
select dbms_metadata.get_ddl('TABLE','EMP') FROM DUAL;
2) check out the columns of primary key:
select * from user_constraints where constraint_type='P' AND table_NAME='EMP';
select * from user_cons_columns where CONSTRAINT_NAME='PK_EMP';And BTW, it is madam, not sir. :)
Edited by: PhoenixBai on Dec 17, 2010 1:07 PM -
Generic Extractors with Fm / Finding out tables used
Hello Gurus,
for a requirement, i would like to find out the table used in a generic extractor with function module.
I can see the structure with the objects used but not the tables where they are from.
How can i find that out?
Thank you
PatHi Gilo ,
The best way to find out the tables used in the function module will be to analyze the code . Check all your Select Statements in the code and see the tables being used there .
Sometimes in the code , we use standard function modules from the ECC. Check those standard FMs also and see what table they are using .
Hope the above reply was helpful.
Thanks & Regards,
Ashutosh Singh -
How to find out theTables used in the program
hi experts,
can any one tell what are the ways to find out the tables used in the program
thanks in advance.Hello,
Below are some tips:
1. If custom program- SEARCH for "TABLES" or "SELECT" stmt.
2. The full-proof way will be to activate SQL Trace. Goto tcode ST05, check SQL Trace & then activate trace.
Execute the program. After execution is complete, deactivate trace & then display trace. You will get all the tables which are being used.
BR,
Suhas -
Query to find out tables using view
Hi
I have a views using three tables.Now i wanted a query to find out number of views using three tables
I have written a query
select * from dba_views where text like '%SELECT%;
It is giving me error as ora error EXPECTED NUMBER GOT LONG.
Appreciate your help?SELECT DECODE(referenced_type, 'NON-EXISTENT', '.....',
referenced_type) || ' ' || referenced_owner ||
'.' || referenced_name r_name, ' is referenced by: ' ||
type || ' ' || owner || '.' || name name,
' Referenced Link: ' || DECODE(referenced_link_name,
NULL, 'none', referenced_link_name) r_link
FROM dba_dependencies
-- WHERE owner NOT IN ('SYS', 'SYSTEM')
-- and rownum < 50
ORDER BY 1,2;
add your own where clause to it -
SQL to find out Objects used by
Hi,
How can I find out the list of objects which are using an object? e.g. Table temp_1 is used by procedure p_test11 and function F_test22... Is there any way to find out the list of these to objects with their type?These dictionary table you can refer to.
SQL> select * from dictionary where table_name like '%DEPENDENCIES%'
2 /
TABLE_NAME COMMENTS
DBA_DEPENDENCIES Dependencies to and from objects
USER_DEPENDENCIES Dependencies to and from a users objects
ALL_DEPENDENCIES Dependencies to and from objects accessible to the user
ALL_REFRESH_DEPENDEN Description of the detail tables that materialized views depend on for
CIES refresh
DBA_APPLY_VALUE_DEPE Synonym for _DBA_APPLY_CONSTRAINT_COLUMNS
NDENCIES
DBA_APPLY_OBJECT_DEP Synonym for _DBA_APPLY_OBJECT_CONSTRAINTS
ENDENCIES
TABLE_NAME COMMENTS
6 rows selected. -
How to find out Tcode Used and their hit rate over a given period of time.
Hi All,
We wanted to know what are the tcodes that are used and how many times over a period of time..
Can you please suggest the ways to find this out..
I have heard of ST03N but not sure how to use this and then download the information ..
Regards,
Vidya..Hi,
Check this
[How to get list of frequently used TCodes] -
How can i find out who used my iTunes last?
Someone reset my password and i want to know who. How can i find this out?
No one used my computer. I got an email that says my password was changed and i want to know who. noone on my computer did it because i checked the history.
Maybe you are looking for
-
Quicktime Crashes on export to h.264 on xp
I am trying to export a 2 min movie to h.264 in QT. I get a far as the movie Settings for Movie to Quick Time Movie and when ever i click on the Setting button QT shuts down. It will not let me change the settings, I've updated my machines drivers an
-
Final cut X-- how do you open previous projects?
i must be missing something really basic. How do you open previous projects in Final Cut X? When I try to open one it hangs on "loading (nameofproject) into time line.
-
Error in Business object BUS2012
Hi Friends.. If I am Going to run Standard Business object BUS2012 its working fine in local system but it was not working client system. It shows the error message like this.. "Basic idoc type PORDCR02 is not found" so how can i solve this issue...
-
MIRO for two profit centre materials
While we are trying to post the MIRO for two different profit centre material, system is not accepting and message is ' profit centre not filled for vendor line item.' document type RE
-
I keep getting an err=-36 error on a few songs from an albumn I just peurchased on itunes. Any suggestions on how to finish getting the songs?