I have created a Jenkins pipeline for PLSQL base code deployment. This works find on the Dev or Test databases as we know the Oracle password.
But, for production Oracle database we do not want to enter the password. Hence, is there any way we can deploy the passwordless Oracle release from Jenkins pipeline i.e. by SSH public/private key pair? Certificate - a PKCS#12 certificate file and optional password? or if via Oracle wallet?
I am going to guess you have a Jenkins pipeline which is running shell scripts, and in those shell scripts you are running sqlplus. If you want to avoid passwords in connections by sqlplus, Oracle Wallet is the answer.
In my current Jenkins configuration SSH connections are done by SSH-key between the servers, and connections to the database are using Oracle Wallet.
Remember that if you use Oracle Wallet, you need to setup the TNS_ADMIN variable to the location where your tnsnames.ora file contains the wallet details. Also remember to modify your sqlnet.ora to include all wallet details.
A good article on how to setup the wallet
https://oracle-base.com/articles/10g/secure-external-password-store-10gr2
Related
I have recently downloaded toad for oracle and i want to connect it to my databases but all I have is a cloud wallet for the database.
I have tried to unzip the cloud wallet and point the toad to that location so it can read the tnsnames.ora file but it did not work. I tried editing the current TOAD tns file and adding the host, port, service name and the credentials but it still did not connect. I kept getting a lot of different errors for example connection failed. file could not open
I do not know how to configure TOAD for it to connect.
Can anyone guide me in the process, I researched it a lot but nobody seem to do it often.
Thanks
This is entirely an Oracle Client configuration issue; there is nothing to do in TOAD itself. You need to either unzip the cloud wallet into your ORACLE_HOME/network/admin directory, or unzip it to a custom directory and set the TNS_ADMIN environment variable to point that directory. Note that TNS_ADMIN must be set before you start TOAD.
Here's one reference I found:
https://forums.toadworld.com/t/toad-connection-to-oracle-cloud-autonomous-database-using-wallet/48202
I have installed oracle 12c and weblogic server installed.
I have configured web logic server and it is up and running.
Next step is to configure Repository Creation utility and to proceed with Forms configuration.
I opted "Prepare Scripts for system Load" because we do not have sysdba permission users.
How to configure RCU without knowing the username and password?
Note:I have the host and service details.
Refer the screenshots.
enter image description here
Thanks
Sudha
You can't. Username and password are obligatory.
Default username is SYS; if you use it, role must be SYSDBA. Other usernames would use NORMAL role.
If you don't know those credentials, ask your DBA; they know everything about it.
I've installed sqlplus64 throw this tutorial: http://webikon.com/cases/installing-oracle-sql-plus-client-on-ubuntu
I want to practice SQL using sqlplus (I can't connect remotely to school ssh).
I've tried everything I found in google and still can't connect.
I don't have any credentials
sqlplus64 / as sysdba
ERROR:
ORA-12545: Connect failed because target host or object does not exist
Welcome!
Probably the easiest way to get started with SQL using sqlplus is to use the virtual machine image Oracle provides for the hands on lab. It contains not only sqlplus, but a full Oracle 12c database, already configured correctly.
Download and instructions here. It's free. You'll need a free account on OTN (Oracle Technology Network), but that's necessary anyway to read the documentation about SQL*Plus and all the rest of it.
I only have SQL Developer installed. What other programs do I need to install to create a local database. Please provide links.
SQL Developer is a client that access to a database server to extract data.
You need a database server.
If you operate with SQLDeveloper probably you like to install Oracle. There is a simplified version of Oracle that is called Oracle-XE. Search it over google and download the right version for your operating system.
Give the username and password of the user you created. You can specify localhost in Host name. If you haven't modified the port on which Oracle works then give 1521. If you haven't changed SID as well then give XE. You might be able to connect with DB.
In oracle we have exp utility. we use that as exp username/password#database. Here can we use provide host and port details to export to remote db tables? If yes, what is the format to provide those? Thanks
You can use an alias from your tnsnames.ora, or provide a connection string in a similar format, or use the Easy Connect syntax:
exp user/password#host:port/service_name
Note that this requires the service name of the database, which might not be the same as the SID. You can get the services by running lsnrctl services on the remote server (if you can) or by querying the v$parameter view (if you have access and permission), or by asking the DBA for the remote server.
The connection options are the same as for any other tool, so if you can connect to the remote database using SQL*Plus then you can use the same connect string for exp. If you're using #database to connect to a local instance then that is probably already defined in your tnsnames.ora, and you could add entries for the remote database there too. If this is a one-off then the Easy Connect is simpler.
Also, if you're not still on an old version (pre-10g), you should use datapump (expdp) rather than the old exp tool.