Error ORA-12560 TNS:protocol adapter error - database

I just Installed Oracle DB g11 whenever I want to login to scott/tiger database, It gives me ORA-12560: TNS:protocol adapter error.
But there's a weird thing. Now, alot of people say that I have to start the OracleService from services in my PC. But, I can't find it there. I would be thankful if you helped me. Thanks

Please check your oracle service and listener are started. Oracle service name usual like OracleService<your sid>. For example.
your Oracle SID is orcl. Your Orace service name is OracleServiceORCL.
and your Listener should end with "TNSListener" like default listener name OracleOraDb11g_home1TNSListener. The both of them have to running.
Then, try to connect your DB with SQLPlus. Open DOS command promt and type this command
>sqlplus <your userlogin>/<your login password>#<your sid>
If connection is success. Result should show like below massage.
C:\Users\monkawee>sqlplus ***/******#orcl
SQL*Plus: Release 11.2.0.1.0 Production on ネ. 狠.ツ. 3 17:04:57 2015
Copyright (c) 1982, 2010, Oracle. All rights reserved.
爼ラ靉チオ靉。ムコ:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL>
Good luck.

Related

Create a new database in Oracle Developer

I downloaded and installed Oracle SQL Developer on my computer. I connected to my company's database. However, as I'm still learning SQL queries - I would like to test out the queries that I wrote on a mock database.
My question is how do I create a database?
I searched through the internet and tried the following.
On the New/Select Database Connection Menubox I typed in the following:
Connection Name: HR_ORCL
Username: HR
Password: HR
Connection Type: Basic
Role: default
Hostname: localhost
Port: 1521
SID: ORCL
I then clicked on test and got the following error message: "Status: Failure-Test failed: IO Error: The Network Adapter could not establish the connection".
How do I create a mock database?
Thank you!
Oracle's flagship database product is a "client/server" system where databases run inside a server process that often runs on a dedicated database server computer, all other client software (including business web-applications, web-services, desktop software and development tools like Oracle SQL Developer) are separately run and do not require the database server be running locally.
To create a database that runs on your computer you need to install the Oracle database server on your computer. Given Oracle's business model of turning software licensing audits into a very profitable business model you likely won't get approval from your company's IT people to install Oracle server on your local machine: they'll either set you up with your own private database instance in an existing server for you to play with or instruct you to install a different (and free) database server not covered by Oracle's licensing schemes - these different products use a different dialect of SQL (e.g. MS SQL Server uses T-SQL, Oracle uses PL/SQL, etc) and different DBA and development tools (e.g. SSMS+SSDT instead of Oracle SQL Developer).
There's multiple options to getting a free Oracle database.
XE 18 was recently released here:
https://www.oracle.com/technetwork/database/database-technologies/express-edition/downloads/index.html
There's a developer day vm that has labs inside it along with a database here:
https://www.oracle.com/technetwork/database/enterprise-edition/databaseappdev-vm-161299.html
There's the docker option outline by Tim Hall here:
https://oracle-base.com/blog/2018/07/26/oracle-database-18-3-0-and-docker/

Unknown error while configuring Oracle 11g Express Edition on Ubuntu 14.04

I have installed Oracle 11g on Ubuntu as per this link: Oracle 11g installation steps on Ubuntu 14.04
I reached to the step where it says to configure Oracle. I am able to execute the command successfully. First it asks to enter HTTP Port, which I entered successfully. Then it asks to enter database listener port, which I entered successfully. Then I entered the password successfully for database account. And finally I said yes for Oracle to be started on boot.
It showed be an error Database Configuration failed. Look into /u01/app/oracle/product/11.2.0/xe/config/log for details. Here I am stuck. I don't really know what error could be. I am sharing the steps and message here. Here is the command:
rakshit#user:/home/rakshitbhatt/Disk1$ sudo /etc/init.d/oracle-xe configure
Here is the internal message:
Oracle Database 11g Express Edition Configuration
This will configure on-boot properties of Oracle Database 11g Express
Edition. The following questions will determine whether the database should
be starting upon system boot, the ports it will use, and the passwords that
will be used for database accounts. Press to accept the defaults.
Ctrl-C will abort.
Specify the HTTP port that will be used for Oracle Application Express [8080]:8080
Specify a port that will be used for the database listener [1521]:1521
Specify a password to be used for database accounts. Note that the same
password will be used for SYS and SYSTEM. Oracle recommends the use of
different passwords for each database account. This can be done after
initial configuration:
Confirm the password:
Do you want Oracle Database 11g Express Edition to be started on boot (y/n) [y]:y
Starting Oracle Net Listener...Done
Configuring database...
Database Configuration failed. Look into /u01/app/oracle/product/11.2.0/xe/config/log for details
Could you help me with it? I am not a technical guy. Thanks!

HP ALM 12.5 installation fails with 'Unable to validate DB connection parameters' error. Help needed

We are trying to install HP ALM 12.5 on a Windows Server 2012 OS.
We have pre-requisite components .Net framework 3.5,4.5, JRE 1.8
During installation, we face an error Unable to validate DB connection parameters.
Checked with vendor, but they are repeatedly pointing to DB only.
However, nothing seems to be wrong with the db. we were able to make connections using SQL Developer and Express. Able to view table schema
Tried installing with SYSDB role, however that also fails making connection. On the listener we find some traffic from the app machine, in which we are attempting an installation.
We are so confused as to whether it is a App server issue or DB server issue. Port checks were done and no question of firewall. All open.
Any suggestions here is much appreciated !!
Db details: Oracle 12.1.0.2 Enterprise
DB server: Unix
App server: Win 2012 Server standard
ALM: 12.5 for HP PC 12.5
Check, please, in ALM installation if you are using SID or Service Name of your Oracle instance.
By default you should provide service name - but you can use SID by modifying Connection string directly (put SID instead of ServiceName).
1 - see screenshot.
Also you can check installation log at User folder\IA_logo for additional information on specific issue you met.

Oracle AWS RDS database link ORA-12545

I'm trying to create a database link from my Oracle AWS RDS instance to another Oracle database outside my VPC. I created the database link this:
create database link test
connect to myusername
identified by "mypassword"
using '(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=my.db.com)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=servicenameame)))';
However when I run a query against that database link I get the following:
SQL> select sysdate from dual#test;
select sysdate from dual#test
*
ERROR at line 1:
ORA-12545: Connect failed because target host or object does not exist
I did some googling of ORA-12545 and the majority of the issues people are having with this error is either an intermittent connectivity failure (of which mine is not, it fails every time), or a misspelled hostname/incorrect port. My issue is also not an incorrect hostname/port because I am able to CONNECT to my.db.com using the same connection string and query the database that way.
Does anyone have any suggestions?
Source Oracle database is:
Oracle Database 11g Release 11.2.0.4.0 - 64bit Production
Destination Oracle database I am trying to connect to is:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
I (somewhat) found the answer I needed. The TLDR version is that after much googling and desk pounding I did an nslookup on the hostname of the database I am connecting to (the my.db.com portion of TNSNames). I modified the TNSNames to connect to the IPs returned by the nslookup. My final TNSNames looks something like the following:
(DESCRIPTION=
(ADDRESS_LIST= (LOAD_BALANCE=on)(FAILOVER=ON)
(ADDRESS=(PROTOCOL=tcp)(HOST=w.x.y.z1)(PORT=1521))
(ADDRESS=(PROTOCOL=tcp)(HOST=w.x.y.z2)(PORT=1521))
(ADDRESS=(PROTOCOL=tcp)(HOST=w.x.y.z3)(PORT=1521)))
(CONNECT_DATA=(SERVICE_NAME= servicenameame)))
The long version is that the Oracle host I am connecting to is configured with a Single Client Access Name (SCAN). After looking at the discussion on this post I went with just looking up the host name. I initially tried to modify the REMOTE_LISTENER in the AWS RDS Parameter Group, but that was not modifiable.

Oracle does not start service while attempt to restart Oracle in windows 7

I am using windows 7 64 bit Operating System and I am using Oracle DB 11G Release 2. Uncertainly My OS stop the service of Oracle.When I try to restart the oracle service then the following message is showing. "windows could not start the oracledbconsoleorcl on local computer. For more Information review the system log.If this is a non microsoft service, contact the service vendor, and refer to service-specific error code 2"
Now My problem is:
I could not login to Oracle from Oracle SQL Plus
I need to backup some important data.
Please help me. Is there any option to start the oracle service or backup my sql data?
Though I try by following method. here's the link Error code 2 starting OracleDbConsole service

Resources