Start and Stop a Weblogic Server Remotely with WLST - oracle

Platform: Windows Server 2016
I have a server running weblogic 12.2.1.3. Runs great. I have another server that only has oracle DB 19c installed and on that server there are some scripts that refresh the DB from a backup weekly. I'd like to modify db scripts on the DB server to use WLST and remotely reach over to the weblogic server and stop a managed server and start it again later in the script.
What do I need to install on the DB server to run WLST?

You have 3 solutions :
Install WLS on your DB machine
Copy WLS java libs required by WLST. For instance with 12.1.3 :
$ORACLE_HOME/wlserver/modules/features/weblogic.server.merged.jar
$ORACLE_HOME/oracle_common/modules/com.oracle.cie.config-wls_8.1.0.0.jar
$ORACLE_HOME/oracle_common/modules/com.oracle.cie.config_8.1.0.0.jar
$ORACLE_HOME/oracle_common/modules/com.oracle.cie.comdev_7.1.0.0.jar
$ORACLE_HOME/oracle_common/modules/com.oracle.cie.service-table_1.1.0.0.jar
$ORACLE_HOME/oracle_common/modules/com.oracle.cie.dependency_1.1.0.0.jar
$ORACLE_HOME/oracle_common/modules/com.oracle.cie.config-wls-schema_12.1.3.0.jar
$ORACLE_HOME/oracle_common/modules/com.oracle.cie.config-security_8.1.0.0.jar
$ORACLE_HOME/oracle_common/modules/com.oracle.cie.config-owsm_8.1.0.0.jar
$ORACLE_HOME/oracle_common/modules/com.oracle.cie.wizard_7.1.0.0.jar
$ORACLE_HOME/oracle_common/modules/com.oracle.cie.encryption_2.1.0.0.jar
$ORACLE_HOME/wlserver/modules/com.oracle.css.weblogic.security.wls_7.1.0.0.jar
$ORACLE_HOME/wlserver/modules/com.oracle.css.common.security.api_7.1.0.0.jar $ORACLE_HOME/wlserver/modules/com.oracle.css.weblogic.security_7.1.0.0.jar
Use WLS REST Management API to start/stop your managed servers from your DB machine. From my point of view it is the best solution. Read this documentation for details.

Related

how to restore mongodb dump file on MongoDB Server On Windows VM In Azure

I m trying to restore a MongoDB dump file present on my windows machine into MongoDB server created inside azure portal as azure virtual machine, I have created this virtual machine and named it mongodbserver then I m connecting via SSH with the client for this case is the power shell CMD that I'm connecting with form my windows machine, now my questions are:
1.In order for me to restore MongoDB dump file where should it be in the server side? or either on my windows machine still I will be able to get it from there and restore it successfully in the server?
2.Can I use Filezilla client to move the database dump file into the server but the problem with this i don't have the password for the virtual machine created since I'm connecting via SSH and Filezilla will require password for it to connect.
3.After restoring the database successfully how can I connect this virtual machine with the MongoDB compass and also how can i get the database Uri in order for me to connect it with my spring application.
Any suggestions will be much appreciated!

How to migrate SonarQube to new host

Need to migrate my SonarQube to a new server (not the remote DB, just the application). Is there any special tool offered by Sonar to do so? is it just a matter of pointing this new installation (if possible) to the old DB?
Sonar v5.2
MySQL 5.x
Thanks!
I do this regularly as the servers I run on are only provisioned for 30 days. You don't specify the operating system, but for windows it's as simple as:
Stop "old" service
Copy folder from old machine to new machine
Install the windows service with the java wrapper
Start the service
In my case I change the DNS alias after the service is running

How to connect my server to external world

I am working with database project for that I installed postgresSql, jboss and apache 2.4 in windows 7. I am able to get data from postgresql to jboss server then using apache(localhost:80) able to get data in browser within LAN. Now I want to connect this server to external world. Other people could access my server from browser. How to make my server to available for external server.
Thanks
You may edit the pg_hba.conf file

Does listener service require Oracle server to be installed?

I have installed Oracle 8i Client version in my machine. I have created local service naming to. I am trying to connect the local service. I am getting below error,
The test did not succeed.
ORA-12541: TNS:no listener
There may be an error in the fields entered,
or the server may not be ready for a connection.
Do I need server to be installed in my machine for the listener to be run in my machine?
Where is the database server running?
Did you create a listener on the local machine? If so, please post the listener.ora in addition to the tnsnames.ora file.
Normally, the listener would run on the database server. It is possible to run the listener on a machine other than the database server but that would not be a particularly common configuration. It would be much more common to run the database and the listener on your laptop.
It would be extremely unusual, though, to want to install any version of 8i today. 8.1.7 has been desupported for nearly a decade and isn't supported on any operating system that is vaguely near supported.
yes, the listener is part of the server, not the client. As you're trying to connect to a locally installed server (I guess) and that server doesn't exist (as you installed only the client) the client will respond that there is no listener (as the listener would be what's replying to the client, not the server directly).

ADO.NET for connecting Oracle Database on server

Recently we have developed an application which connects to oracle database for fetching records. For fetching records, we are using OLEDB for Oracle. Application runs fine on my machine by connectng properly with Oracle ,since i have oracle client installed on my machine. Now i tried to test application on another machine, which doesnot have any oracle instance/Client installed on his machine. Application fails to connect to oracle central DB Server. Is it necessary for users to install oracle client on their machine before the application communicates with Oracle.
Here is Connection string
connectionString="Provider=msdaora;Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=XYZ)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=abc.com)));Persist Security Info=False;User Id=mahens; Password=XXXXXXXXX" providerName="System.Data.SQLOLEDB"/>
The above code is for OLEDB for oracle. Is there any thing i required to install for connecting to central Oracle DB server from my windows application(.NET application installed on local machine).
If we try to use ODP.NET dll and include those dll's along within BIN directory,will that work?..Can any1 tell me a way wherein user need not install any oracle Client on their machine and communicate to server.
-Mahender
I believe you always need the oracle client installed as everything in .net ultimately uses ODP.NET. However, you can use the Oracle Instant Client to make your users' setup process easier.

Resources