ORA-12170: TNS:Connect timeout occurred

[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 lsnrctl status command and check the address reported (in this case is 127.0.0.1, the localhost): (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521))) … Read more

Searching for Text within Oracle Stored Procedures

SELECT * FROM ALL_source WHERE UPPER(text) LIKE ‘%BLAH%’ EDIT Adding additional info: SELECT * FROM DBA_source WHERE UPPER(text) LIKE ‘%BLAH%’ The difference is dba_source will have the text of all stored objects. All_source will have the text of all stored objects accessible by the user performing the query. Oracle Database Reference 11g Release 2 (11.2) … Read more

How can I get all sequences in an Oracle database?

select sequence_owner, sequence_name from dba_sequences; DBA_SEQUENCES — all sequences that exist ALL_SEQUENCES — all sequences that you have permission to see USER_SEQUENCES — all sequences that you own Note that since you are, by definition, the owner of all the sequences returned from USER_SEQUENCES, there is no SEQUENCE_OWNER column in USER_SEQUENCES.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)