Oracle client ORA-12541: TNS:no listener

You need to set oracle to listen on all ip addresses (by default, it listens only to localhost connections.) Step 1 – Edit listener.ora This file is located in: Windows: %ORACLE_HOME%\network\admin\listener.ora. Linux: $ORACLE_HOME/network/admin/listener.ora Replace localhost with 0.0.0.0 Step 2 – Restart Oracle services Windows: WinKey + rservices.msc Linux (CentOs):sudo systemctl restart oracle-xe

PLS-00103: Encountered the symbol “CREATE”

At line 5 there is a / missing. There is a good answer on the differences between ; and / here. Basically, when running a CREATE block via script, you need to use / to let SQLPlus know when the block ends, since a PL/SQL block can contain many instances of ;.

ORA-12560: TNS:protocol adaptor error

o to the windows machine that hosts the Oracle database server Go to Start -> Run -> Services.msc in Windows. Locate OracleService < SID > (here OracleServiceORCL) and click on Start to start the oracle database service (if not already running) Once it is up and running, from the command prompt run the following:tnsping < tnsalias > (tnsalias entry you can … Read more

How to Select Top 100 rows in Oracle?

Assuming that create_time contains the time the order was created, and you want the 100 clients with the latest orders, you can: add the create_time in your innermost query order the results of your outer query by the create_time desc add an outermost query that filters the first 100 rows using ROWNUM Query: UPDATE for Oracle 12c … Read more

Oracle SELECT TOP 10 records

You’ll need to put your current query in subquery as below : Oracle applies rownum to the result after it has been returned.You need to filter the result after it has been returned, so a subquery is required. You can also use RANK() function to get Top-N results. For performance try using NOT EXISTS in place of NOT IN. See this for more.

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