Because the computer does not have the Oracle server side installed, so after installing Plsql still cannot connect Oracle database, download an Oracle Client tool on the Internet, is green free install, decompression is good. I put my cloud on the
In addition to full-library copies, this should be the fastest way to migrate data between Oracle's two databases.CREATE public DATABASE LINK Zhengshi CONNECT to username identified by "password" USING ' (DESCRIPTION =(Address_list =(ADDRESS =
SHUTDOWN NORMAL: Do not allow new connections, wait for the session to end, wait for the transaction to end, make a checkpoint, and close the data file. No instance recovery is required at startup.SHUTDOWN transactional: Does not allow a new
Startup and shutdown of Oracle database under Linux1. $ su-oracle2. $ sqlplus/nolog3. sql> Conn/as SYSDBAOr is it 2,3 a sqlplus/as sysdba4. Sql> startup (generally does not need to add parameters, as long as the environment variables set)5. Sql>
The Oracle temp table space is used primarily for querying and storing some buffer data. The primary reason for the temporary tablespace consumption is the need to sort the intermediate results of the query. The primary role of temporal
1. Grammatical differencesThe definition of the variable type, the position in the out, the position of the variable definition, the position of the cursor, and the position of the exception;2, MySQL does not return keyword, using leave label way to
1: Create UserCreate user username identified by password;Note: The password starts with a letter2: Change Passwordyourself: PasswordOthers: Password username (System administrator can change others)3: Delete UserDrop user username [cascade]DBA
Oracle cannot be accessed remotely if it does not start the monitoring service, and an error occurs if using OCI or SQL developer. Start TNS Monitor: Lsnrctl startView TNS Monitor: Lsnrctl statusStop TNS monitoring: Lsnrctl stopOracle Remote
Use the Case...when statement to determine its syntax in the following format:CaseWhen then pl_sqlsentence_1;When then pl_sqlsentence_2;...When then Pl_sqlsentence_n;[Else plsql_sentence;]End case;Specific examples are as follows:DeclareV_seasonint:=
1. First log in as Sysdba conn/as SYSDBA2. Close the database shutdown immediate;3. Use mount to hit the database, startup mount4. Set sessionSql>alter SYSTEM ENABLE RESTRICTED SESSION;sql> ALTER SYSTEM SET job_queue_processes=0;sql> ALTER SYSTEM
Select Max (field 1), Over (partition by field 2, Field 3) from table;--Remove the largest of field 3 from Field 2 and field 1 partitionsEquivalentSelect Max (field 1) from the table group By Field 2, Field 3;However, the above SQL will list all the
User name is: C # #NEWO=============================================================================/* divided into four steps *//* Step 1th: Create a temporary tablespace */Create temporary tablespace C # #NEWO_TEMPTempfile '
Use the%type keyword to declare a data type that is the same as the specified column name, which is usually followed by the specified column name.2 Benefits of using%type:1. Users do not have to look at the data types of individual columns in the
The archive log after oracle11gw.uardfailover reconstruction is not NO longer applied.1. the archive records of the master database are inconsistent, as shown below:
After failover, the bad old master database becomes a new slave database, but the
Different showparameterpfile results when started with pfile or spfile
Normal start: SQL> show parameter pfileNAME type value =----------- startup spfile string/u01/app/oracle/product/11.2.0/dbhome_1/dbs/spfilesingle1.or a start SQL> startup nomount
Convert a long field to a varchar2 Field
Reference: How to Convert a Long to Varchar2 (Document ID 228532.1)/* Convert a long field to a varchar2 type */-- create table dxmy_long (lon long, var varchar2 (100); -- insert number into dxmy_long values (
Simple Oracle REGEXP_REPLACE function usage
REGEXP_REPLACE allows you to search for the function of the string's regular expression mode REPLACE function. By default,
This function returns source_char and replace_string to replace each instance in
SQL Like fuzzy query: small knowledge; sqllike fuzzy query
Fuzzy query:
Where mc like 'value': The returned value is equivalent to where mc = 'value'
Where mc like '% value': All data whose matching name is' * value' (ending with "value"), *
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