How to check synonym vendor1 existed or not?
Hi,
I want to check synonym vendor1(synonym_name) existed or not in the databse.
And also want to create a table_name(with out data).
pls guide me.
Regards,
Venkat
Hello,
To check the synonym , please consider using one and or both or the disctionarry tables below :
Connected to Oracle Database 11g Enterprise Edition Release 11.1.0.7.0
Connected as SYS
SQL> desc user_synonyms
Name Type Nullable Default Comments
SYNONYM_NAME VARCHAR2(30) Name of the synonym
TABLE_OWNER VARCHAR2(30) Y Owner of the object referenced by the synonym
TABLE_NAME VARCHAR2(30) Name of the object referenced by the synonym
DB_LINK VARCHAR2(128) Y Database link referenced in a remote synonym
SQL> desc dba_synonyms
Name Type Nullable Default Comments
OWNER VARCHAR2(30) Username of the owner of the synonym
SYNONYM_NAME VARCHAR2(30) Name of the synonym
TABLE_OWNER VARCHAR2(30) Y Owner of the object referenced by the synonym
TABLE_NAME VARCHAR2(30) Name of the object referenced by the synonym
DB_LINK VARCHAR2(128) Y Name of the database link referenced in a remote synonym
SQL> to search of the synonym vendor execute the follwing
SELECT *
FROM user_synonyms
WHERE synonym_name LIKE 'VENDOR%';
SELECT *
FROM dba_synonyms
WHERE synonym_name LIKE 'VENDOR%'for the second question please give more details
Regards,
orawiss
Similar Messages
-
How to check one table exist or not in SAP
Hi, Gurus:
How to check one table exist or not in the SAP.
Thanks,Hi,
Query the table DD02L..
Select single * from DD02L where tabname = 'Your table name'
AND TABCLASS = 'TRANSP'. " For transparent tables.
Thanks
Naren -
How to check whether file exist or not?
hello,
i wanted to know that how can i check whether a file exist or not independent of underlying Operating system?
please help .
Thank you.Use exists() on a File instance.
-
How to check node value exists or not?
for example
<Hi>1</Hi>
here for Hi value exists or not need to check.SQL> create table MY_XML_TABLE of XMLTYPE
2 /
Table created.
SQL> insert into MY_XML_TABLE values ( XMLTYPE('<FOO><H1>FOO</H1><H2/></FOO>') )
2 /
1 row created.
SQL> commit
2 /
Commit complete.
SQL> set feedback on
SQL> select *
2 from MY_XML_TABLE
3 where XMLExists('$x/FOO/H1' passing OBJECT_VALUE as "x")
4 /
SYS_NC_ROWINFO$
<FOO>
<H1>FOO</H1>
<H2/>
</FOO>
1 row selected.
SQL> select *
2 from MY_XML_TABLE
3 where XMLExists('$x/FOO/H1/text()' passing OBJECT_VALUE as "x")
4 /
SYS_NC_ROWINFO$
<FOO>
<H1>FOO</H1>
<H2/>
</FOO>
1 row selected.
SQL> select *
2 from MY_XML_TABLE
3 where XMLExists('$x/FOO/H2' passing OBJECT_VALUE as "x")
4 /
SYS_NC_ROWINFO$
<FOO>
<H1>FOO</H1>
<H2/>
</FOO>
1 row selected.
SQL> select *
2 from MY_XML_TABLE
3 where XMLExists('$x/FOO/H2/text()' passing OBJECT_VALUE as "x")
4 /
no rows selected
SQL> -
URGENT!!! how to check whether file exist or not on client side?
hello,
i am building appilication using JSP and javabeans.
Problem is my application is like on server files are there for say colors and their corresponding car image in that color.so when i move my mouse over that particular color ,its corresponding car image is displayed.
now say someone has deleted that corresponding car image file but image of color is there...........
so i have to handle such excpetion.
like if corresponding car image for that color is not there then that color image should also not be displayed.
i dont want to do this checking on server side.
pls help me!!!!!!You don't have access to the client files. It is a security violation in a normal internet environment. Imagine what people could do to your computer if they could see everything on it.
-
How to check Reconcilliation has happened or not for a payment document
Hi,
How to check Reconcilliation has happened or not for a payment document? Payment doc ABCDEF was created on 2nd. Now i am not sure whethr RECON has happend ot not
Please help.Dear,
If you have made payment to vendor and want to know whether reconciliation happened or not then check if this document exist in table BSIK then reconciliation has not been done.
Regards,
Chintan Joshi. -
How to check table is creating or not
Hi,
I am creating only one table by running a table creation script(table.sql) which contain 366 partition.but I dont know whether table is creating or not.it is taking long time,sometimes I feel like script is hanging.even before running the script I have even spooled but spool file shows nothing. so how to check table is creating or not from background? can anyone please let me know abt this.this is bit urgent
sql>spool table.log
sql>@table_partition.sqlhi,
I am running the script table_partition which consist of 366 partition and 31 sub partition but the script is hanging.there is no hint in alert log file or anything wat might be the reason is it because of extent size? as extent size for this tablespace where table has to be create is 1mb,wat i suspect is do i need to set for higher value inorder to avoid this?
with regards;
Boo -
How to check table is NULL or not when a form load?
How to check table is NULL or not when a form load?
I want to make the form when it load it check the data in table, if there are no data in table other form will be load.
Sorry for bad English...Maybe you can do this in form1's Form_Open event:
if dcount("*", "table1") = 0 then
Cancel = True
Docmd.Openform "form2"
end if
-Tom. Microsoft Access MVP -
How to check any directory existance in TestStand?
How to check any directory existance in TestStand?
Is there TestStand function? Or other option without writing my own code in external program (e.g. LabVIEW or C)?
Thanks in advance
Solved!
Go to Solution.At Least according to the NI TestStand 2012 documentation, Engine.FindPath and Engine.FindFile work only within the NI TestStand SearchDirectories.
Maybe related: remote paths (\\server\path\to\file.ext) are considered "invalid" by Engine.FindPath. -
How to check table have exists any views in oracle
hi,
how to check table have exists any views in oracleSELECT * FROM user_dependencies
WHERE type='VIEW'
AND referenced_type='TABLE'
AND referenced_name ='Your_Table_Name' You may use dba_dependencies to find views in different schema. -
How to check internal table sorted or not
Hi all
I need to check internal table sorted or not which is without header line and having only one field and six values. please let me know how to check it is sorted or not because i need to display message if it is not sorted.
thanks,
MinalHi Minal,
Go through this info.
Sorted tables
This is the most appropriate type if you need a table which is sorted as you fill it. You fill sorted tables using the INSERT statement. Entries are inserted according to the sort sequence defined through the table key. Any illegal entries are recognized as soon as you try to add them to the table. The response time for key access is logarithmically proportional to the number of table entries, since the system always uses a binary search. Sorted tables are particularly useful for partially sequential processing in a LOOP if you specify the beginning of the table key in the WHERE condition.
Stable sort
The option
SORT <itab> ... STABLE.
allows you to perform a stable sort, that is, the relative sequence of lines that are unchanged by the sort is not changed. If you do not use the STABLE option, the sort sequence is not preserved. If you sort a table several times by the same key, the sequence of the table entries will change in each sort. However, a stable sort takes longer than an unstable sort.
Examples
DATA: BEGIN OF LINE,
LAND(3) TYPE C,
NAME(10) TYPE C,
AGE TYPE I,
WEIGHT TYPE P DECIMALS 2,
END OF LINE.
DATA ITAB LIKE STANDARD TABLE OF LINE WITH NON-UNIQUE KEY LAND.
LINE-LAND = 'G'. LINE-NAME = 'Hans'.
LINE-AGE = 20. LINE-WEIGHT = '80.00'.
APPEND LINE TO ITAB.
LINE-LAND = 'USA'. LINE-NAME = 'Nancy'.
LINE-AGE = 35. LINE-WEIGHT = '45.00'.
APPEND LINE TO ITAB.
LINE-LAND = 'USA'. LINE-NAME = 'Howard'.
LINE-AGE = 40. LINE-WEIGHT = '95.00'.
APPEND LINE TO ITAB.
LINE-LAND = 'GB'. LINE-NAME = 'Jenny'.
LINE-AGE = 18. LINE-WEIGHT = '50.00'.
APPEND LINE TO ITAB.
LINE-LAND = 'F'. LINE-NAME = 'Michele'.
LINE-AGE = 30. LINE-WEIGHT = '60.00'.
APPEND LINE TO ITAB.
LINE-LAND = 'G'. LINE-NAME = 'Karl'.
LINE-AGE = 60. LINE-WEIGHT = '75.00'.
APPEND LINE TO ITAB.
PERFORM LOOP_AT_ITAB.
SORT ITAB.
PERFORM LOOP_AT_ITAB.
SORT ITAB.
PERFORM LOOP_AT_ITAB.
SORT ITAB STABLE.
PERFORM LOOP_AT_ITAB.
SORT ITAB DESCENDING BY LAND WEIGHT ASCENDING.
PERFORM LOOP_AT_ITAB.
FORM LOOP_AT_ITAB.
LOOP AT ITAB INTO LINE.
WRITE: / LINE-LAND, LINE-NAME, LINE-AGE, LINE-WEIGHT.
ENDLOOP.
SKIP.
ENDFORM.
************rewords some points if it is helpful.
Rgds,
P.Naganjana Reddy -
How to check oracle properly installed or not?
Hello Friends,
How to check oracle properly installed or not. cause during installation time the person who installed faced many problems. we have RISK base IBM p5 Series server and Oracle 10g RAC.
i want to check installation made properly or not.
Thanks,
Nikunj PatelInstallation for RAC environments means you are not only talking about one single installation, but several installations, and the number of installations and checking processes depend on factors such as the clusterware you are using, if you are using the Oracle clusterware or the proprietary clusterware, if you are using a separate oracle home to install the ASM or if you are using the same oracle home for both, the ASM and the RDBMS.
First you must ensure you have installed all prerequisites according to your platform, i.e. patches, packages, kernel parameters, etc. which are listed at the install guide corresponding to your platform. Then you should use the cluvfy (cluster verifier tool) to check if the different install phases are properly installed
The most critical and most of the times, problematic installation phase is the clusterware. So you should specify if you installed the Oracle clusterware or the proprietary clusterware. In a RAC environment if your clusterware is not properly installed, most probably you won't have a running RAC, so if your environment is functional there you may have high probabilities that it is OK, but to make sure, launch the cluvfy tool.
The cluvfy tool verifies the process since the beginning and it ensures your environment meets the required minimum requirements to be at an operational level, it checks the pre/post install phases for the clusterware, pre/post install of the rdbms, and it is launched from the OS. It can be obtained as a standalone product or you can use the one found at the clusterware Oracle Home. For further references on this tool I suggest you to read this
Oracle® Database Oracle Clusterware and Oracle Real Application Clusters Installation Guide
10g Release 2 (10.2) for AIX
Part Number B14201-04
~ Madrid -
How to check file is exists in specified path in content server or not
i m using JDevloper 11.1.1.6.0
I want to upload file using RIDC functions,but before uploading it i have to check wheather it is already present on specified path in content server or not.
How i check it.I tried to write a (simpler) version of my own code:
public static Results CheckInToFolder(File f) {
// create the binder
DataBinder checkinDoc = idcClient.createBinder();
// populate the binder with the parameters
checkinDoc.putLocal("IdcService", "CHECKIN_UNIVERSAL");
checkinDoc.putLocal("dDocTitle",
"Document checked in through RIDC at " +
new Date());
checkinDoc.putLocal("dDocType", "Document");
checkinDoc.putLocal("dDocAccount", "");
checkinDoc.putLocal("dSecurityGroup", "Public");
checkinDoc.putLocal("dCollectionID", "909964822906001607");
// add a file
// execute the request
try {
checkinDoc.addFile("primaryFile", f);
} catch (IOException e) {
myExecutable.logEvent("File" + f.getName() + " not found.");
return null;
ServiceResponse checkinResponse;
try {
checkinResponse = idcClient.sendRequest(userContext, checkinDoc);
myExecutable.logEvent("Check-in successful. Size:" + f.length() + " bytes");
catch (oracle.stellent.ridc.protocol.ServiceException e) {
myExecutable.logEvent("ServiceException");
e.printStackTrace();
return null;
catch (IdcClientException e) {
myExecutable.logEvent("Check-in failed.");
e.printStackTrace();
return null;
DataBinder checkinData;
try {
checkinData = checkinResponse.getResponseAsBinder();
Results res =
new Results(checkinData.getLocal("dID"), checkinData.getLocal("dDocName"));
myExecutable.logEvent("Successfully got response - dID is " +
res.getDID() + ", dDocName is " +
res.getDDocName());
return res;
catch (oracle.stellent.ridc.protocol.ServiceException e) {
myExecutable.logEvent("ServiceException2");
//e.printStackTrace();
return null;
catch (IdcClientException e) {
myExecutable.logEvent("Unable to get response.");
e.printStackTrace();
return null;
}What I'm getting is this:
Mon Aug 13 14:51:29 CEST 2012 0ms: Started
Mon Aug 13 14:51:29 CEST 2012 57ms: Connection to idc://192.168.44.129:4444 successfully established.
Mon Aug 13 14:51:29 CEST 2012 102ms: Check-in successful. Size:702 bytes
Mon Aug 13 14:51:29 CEST 2012 5ms: ServiceException2
Mon Aug 13 14:51:29 CEST 2012 0ms: Finished
This means:
a) it does, indeed, return the exception (oracle.stellent.ridc.protocol.ServiceException)
b) you could use this mechanism for your code
c) it is, indeed, primaryFile.name what's being checked
I will also take a look at the other service to perform the check prior to check-in service call. -
How to check variable if present or not ?
I have a main form and put the :global.gdate, When I call the others form
I want to use the :global.gdate.
I wirte a trigger "when new form instance" for each form (except main form) so I can get :global.date.
But I can only running this program from main form, if I am running the form without the main form, the error message :global.gdate does not exists.
Question:
Is it posible to check if :global.gdate is exists or not ?
maybe somthing like :
IF get_variable(:global.gdate) IS NULL THEN --?????????
:global.gdate := sysdate;
END IF;From Oracle documentation:
DEFAULT_VALUE built-in
Description
Copies an indicated value to an indicated variable if the variable's current value is NULL. If the variable's current value is not NULL, DEFAULT_VALUE does nothing. Therefore, for text items this built-in works identically to using the COPY built-in on a NULL item. If the variable is an undefined global variable, Form Builder creates the variable.
Syntax
PROCEDURE DEFAULT_VALUE
(value_string VARCHAR2,
variable_name VARCHAR2);
Example:
** Built-in: DEFAULT_VALUE
** Example: Make sure a Global variable is defined by
** assigning some value to it with Default_Value
BEGIN
** Default the value of GLOBAL.Command_Indicator if it is
** NULL or does not exist.
Default_Value('***','global.command_indicator');
** If the global variable equals the string we defaulted
** it to above, then it must have not existed before
IF :Global.Command_Indicator = '***' THEN
Message('You must call this screen from the Main Menu');
RAISE Form_Trigger_Failure;
END IF;
END; -
How to check program is running or not
Hi,
Is it possible to check whether a program is running or not?
I know when you try to compile a package which is running, oracle does not allow you compile it, it hangs. That is, somehow, Oracle knows the program is running. How can we check this information?
Suppose procedure below. If i ran it in one session, how can check that procedure p is running in other session?
I searched the forum. There is one( checking if a package procedure is already running ) thread but noone has replied.
Thanks....
SQL> DROP TABLE T;
Table dropped
SQL> CREATE TABLE T AS SELECT DUMMY D FROM DUAL;
Table created
SQL> CREATE OR REPLACE PROCEDURE p IS
2 s VARCHAR2(12);
3 BEGIN
4 SELECT d INTO s FROM t;
5 LOOP
6 EXIT WHEN s = 'Y';
7 SELECT d INTO s FROM t;
8 END LOOP;
9 END p;
10 /
Procedure created
SQL> exec p;I found the answer from another thread.( Package Compilation Hangs )
Answer is : http://www.ixora.com.au/scripts/sql/executing_packages.sql
Maybe you are looking for
-
Dump while running report in background
Hi Experts, I have created one report to create the conditions record by using BDC. The program is uploading the data from file which is located at local server and at selection screen, path of file is defined. When i run the report in foreground it
-
Can't get iTunes on new computer to show iCloud music files or manually manage phone
I have so many questions. Normally I use iTunes on my work PC, but I got a new home PC, downloaded iTunes, logged in with Apple ID, yet I don't see any of the music showing up from my Cloud. And when I plug my phone in, I'm unable to add/delete some
-
Grtting error Attempt to access dead view row of persistent id 1
Hi, I have created one custom method which takes two object: Method is: public void testDeprtment(DepartmentsViewRowImpl department,CountriesViewRowImpl Country){ try{ ViewObjectImpl departmentView = getDepartmentsView1(); ViewObjectImpl countryView=
-
[SOLVED]Error while trying to synchronizing package databases...
I got this error when I tried to update my system....:( [root@hudsonslair pacman.d]# pacman -Suy :: Synchronizing package databases... error: failed retrieving file 'current.db.tar.gz' from ftp.gigabit.nu : Connection refused error: failed retrieving
-
I would be glad, if anyone could help me. The master collection cs 2 cant be installed because powerpc isnt supported by mac anymore.