To prevent user processes from modifying data in the Oracle database, you can set the database status to read-only. The SQL statement is as follows: startupmountalterdatabaseopen
To prevent user processes from modifying data in the Oracle database, you can set the database status to read-only. The SQL statement is as follows: startup mountalter database open
To prevent user processes from modifying data in the Oracle database, you can set the database status to read-only. The SQL statement is as follows:
Startup mount
Alter database open read only;
[Note: The alter database *** command must be executed when the database is in the mount State. If the database has been started, shutdown is required first]
Then, perform the following operations to log on to the scott/tiger User:
Run sqlplus/nolog -- cmd
Conn scott/tiger; -- connect to the scott account
When executing the delete operation, the following results will be displayed. [dept table is used as an example here. It serves the same purpose as executing the following emp table. Please explain it to yourself ]:
When the database status is changed to read write
Execute the delete operation again. The result is as follows:
[PS: Because the database instance is restarted, the previous session ends. You need to disconnect and log on to the scott account again ..
After I delete the data, the database should not be written without the commit operation, but the data in the data buffer zone has been deleted. This is dirty data]
Quick Response after Oracle accidentally deletes table data