Summary of common Linux operations and summary of linux
1. Restart weblogic in linux (disable and start ):
Ssh remote connection to Linux server!
Enable weblogic: 1. Find the/Oracle/Middleware/user_projects/domains/user _ domain directory. 2. Execute nohup. /startWebLogic. sh (The Role of nohup is to enable weblogic to run in the background). 3. Use the tail-f command to monitor changes to remote files, for example, to monitor the log output of a Weblogic domain, you only need to enter the command: tail-f nohup. out to stop weblocgic: Command. /stopWebLogic is usually difficult to close. You need to kill the background process (this is often the case) to view the background process # ps-ef | grep weblogic such: root 28596 28558 2 00:00:18 pts/1/opt/Oracle/Middleware/jr ......... Root 28880 28778 0 00:00:00 pts/2 grep weblogic kill background process: # kill-9 28596
2. Start and close oracle databases in Linux:
Step 1: log on
After the root user logs in, switch to the oracle user and enter
Su oracle
Step 2: connect
Enter
Sqlplus/nolog
Step 3: Use administrator permissions
Connect/as sysdba
Step 4: Start/Close the service
Start Database
Startup
Close Database
Shutdown immediate
Exit sqlplus before enabling the listener
Exit
Lsnrctl start
Startup parameters
Without parameters, start the database instance and open the database so that you can use the database. In most cases, this method is used!
Nomount: only starts database instances, but does not open the database. It is used when you want to create a new database, or when you need it!
Mount: used when renaming a database. In this case, the database is opened and can be used!
Shutdown
Shutdown Parameters
Normal: wait until all users are disconnected.
Immediate waits for the user to complete the current statement
Transactional waits for the user to complete the current transaction
Abort closes the database without waiting.
Normal requires that you close the database only after all connected users are disconnected. Sometimes it seems that the command is not running! New connections are not allowed after this command is executed.
Immediate disconnects the user after the user executes the statement being executed, and does not allow new users to connect.
Transactional disconnects after it supports executing the current transaction and does not allow new users to connect to the database.
Abort forcibly disconnects and closes the database.
Step 5: to start the service, enable the listener.
Exit the sqlplus mode and enter
Lsnrctl start