Data is the core of the application, the program is broken the re-release of the machine can be, but once the loss of data, the loss will be irreversible, the program released to production, data backup is particularly important, because not all
GrammarDelete from AATRUNCATE TABLE AADifference1.delete from the back can write the condition, truncate not.2.delete from records are deleted, each row of records will go into the log, and truncate delete the entire page at once, so the day to the
1. Create user DBA authority to operateCREATE user username (user name) identified by password (password)A user who has created a user name and password that are T11 SQL>CREATEUSER by T1; 2 3 User created.2. Granting permissionsGRANT ROLE to
differences and linkages between Oracle unique indexes and ordinary indexesDifference: Unique index and general index the biggest difference is that you add a single layer of constraint to the index column. A data column that adds a unique index can
Test the stored procedure with the landlord:1. Right-click the stored procedure you want to testThe following prompt box appears2. Fill in the parameters3, click to start, the following actionsOver, that's so
First check the Oracle parameters: Sql> Show Parameters SGA; NAME TYPE VALUE------------------------------------ ----------- -------LOCK_SGA Boolean TRUEPRE_PAGE_SGA Boolean TRUE If the value of the above two options is false, it needs to be
First, the userView the default tablespace for the current userSql> select Username,default_tablespace from User_users;USERNAME Default_tablespace------------------------------ ------------------------------SCOTT USERSView the role of the current
Should be the DB computer is the DHCP dynamic IP changed the problem,1, modify the Listener. Ora is the current IP address or machine name2, modify the Tnsnames.ora under the current IP address or machine nameThe service failed to start, you can
One: The simple test job creation process case:1, first create a job_test table, the field is a date formatSql> CREATE TABLE Job_test (a date);Table createdSql> commit;Commit Complete2, create a stored procedure BB action is to insert data into the
The following astriddesmet are translated from the Oracle DBA official documentation, which is also noted in the gaps.Managing Redo Log FilesLearning Goals:1. Explaining the purpose of redo log files2. Describe the structure of the redo log file3.
First log in to Sqlplus with system and password, and then:1. Log in to Oracle with SYSConnect sys/password as SYSDBA; (Can I log in to sqlplus directly with SYS?) )2. Start to modify the codeShutdown immediate; Stop Oracle services and listen. If
Oracle Guaranteed Read Consistency principle 1:undo segment concept When the database is being modified, You need to save the data saved to the previous old to a place, and then modify the segment that is used to save the older
Dbca cannot identify an existing database
When you delete an unnecessary test database at the customer's site and use dbca, the database cannot be found. It's strange that it's starting !!
Later, I searched for oratab in the operating system and
SQL statement for Oracle user password validity period, oraclesql
If you don't talk much about it, you can write SQL statements directly. Of course, there are many other ways to write SQL statements. I just want to share with you a solution. If you
How to Set Login. SQL in Oracle SqlPlus: sqlpluslogin. SQL
Sqlplus automatically runs two scripts at startup: glogin. SQL and login. SQL.
The execution order is
1. The glogin. SQL file is searched for and executed in the $ ORACLE_HOME/sqlplus/admin
Oracle: RETURNING clause, oraclereturning
RETURNING is usually used in combination with DML statements. (Insert update delete)
Usage:
UPDATE table_name SET expr1RETURNING column_nameINTO xxx
INSERT: returns the added value.UPDATE: return the updated
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service