toad

Using IF ELSE in Oracle

会有一股神秘感。 提交于 2019-11-27 03:24:59
问题 As a web developer, I know how to use the IF ELSE in multiple languages. However, I am learning how to write reports using TOAD for Oracle. My question is, how do I properly add an IF ELSE statement? This is what I am attempting to do. The error is: Command not Properly Ended. (VIKKIE to ICKY has been tasked to me by my supervisor to help me learn) SELECT DISTINCT a.item, b.salesman, NVL(a.manufacturer,'Not Set')Manufacturer FROM inv_items a, arv_sales b WHERE a.co = '100' AND a.co = b.co AND

ORA-12170: TNS:Connect timeout occurred

不想你离开。 提交于 2019-11-27 01:21:36
问题 I was trying to connect to the database here in my laptop using Oracle Toad but I kept on having this error: ORA-12170: TNS:Connect timeout occurred What are the possible reasons why I kept on having this error? I accessed the same database yesterday and was able to accessed it. 回答1: [Gathering the answers in the comments] The problem is that the Oracle service is running on a IP address, and the host is configured with another IP address. To see the IP address of the Oracle service, issue an

Is there a workaround for ORA-01795: maximum number of expressions in a list is 1000 error?

岁酱吖の 提交于 2019-11-26 10:49:06
问题 Is there a workaround for \'ORA-01795: maximum number of expressions in a list is 1000 error\' I have a query and it is selecting fields based on the value of one field. I am using the in clause and there are 10000+ values example: select field1, field2, field3 from table1 where name in ( \'value1\', \'value2\', ... \'value10000+\' ); Every time I execute the query I get the ORA-01795: maximum number of expressions in a list is 1000 error . I am trying to execute the query in TOAD, no

Determining location of relevant tnsnames.ora file

南笙酒味 提交于 2019-11-26 00:49:02
问题 I installed both the 32 and 64-bit Oracle 11g drivers. I search my PC looking for files with the name \"tnsnames.ora\" and found 3 in the following locations: 1. C:\\Oracle\\product\\11203_32bit\\CLIENT_1\\NETWORK\\ADMIN 2. C:\\Oracle\\product\\11203_64bit\\CLIENT_1\\NETWORK\\ADMIN 3. C:\\Windows\\TNS The existence of the 3rd location of the tnsnames.ora file surprises me. I have the following Oracle clients installed on my PC: \"C:\\Program Files (x86)\\Quest Software\\Toad for Oracle 11.6\