Select * From session_privsIn sqlplus, you can view all permissions of the current user,
Check if it is DBASelect userenv ('isdba ') from dual;
View the current schema and user:
Select sys_context ('userenv', 'current _ user ')As CURRENT_USERFrom
Differences between Oracle-Decode () and case statements:
Example:
1. Case statement:
Select case sign (5-5)
When 1 then 'is positive'
When-1 then 'is negative'
Else 'is 0' end
From dual;
Background implementation:
If (sign (5-5) =
It is basically the same as importing other databases. However, the Oracle client is difficult to use.1. Select the database when the model is created.2. Right-click the Class View named Data Model and select import dB schema from ODBC source.3.
In Oracle, sys_guid () can be used to generate a guid, which is equivalent to newid () in MSSQL ().
In Oracle9i and Oracle 10g, sys_guid generates 32-bit data, for example, 234e45f0077881aae0430aa301_1aa.
However, the guid format in Oracle is
1.
To_date format (take time: 13:45:25 as an example)Year:YY two digits two-year display value: 07YYY three digits: 007Yyyy four digit
2.Select to_char (to_date (222, 'J'), 'jsp ') from dualDisplay two hundred twenty-two
3. Check the day of the
A sequence is a database object that can be used to generate a unique integer. Generally, the sequence is used to automatically generate the primary code value.
The value of a sequence is composed of special Oracle
Program Automatic Generation, so
An error message is received when lob with a size greater than 4 kb is inserted or updated on Oracle.
When you insert or update lob (blobs and clobs) larger than 4 K, you may receive exceptions similar to the following:
Java. SQL. sqlexception:
Oracle queries data from the previous hour, one day, one month, or one year
Query for one hour
Select Concat (to_char (sysdate, 'yyyy-mm-dd') | (to_char (sysdate, 'hh24')-1), ': 00: 00') start_time, concat (to_char (sysdate, 'yyyy-mm-dd hh24'), '
1. ListeningStart listeningLSNRCTL startStop listeningLSNRCTL stopView listener statusLSNRCTL status
2. StartEnterSu-OracleRun the sqlplus command to enter the sqlplus environment. The nolog parameter indicates no logon;Sqlplus/nologEnter in
What is the difference between a temporary table and a formal table?What is the role of a temporary table?How can I create a temporary table?
Temporary tables are generally stored in temporary tablespaces.There are two types:
1 length ()
Measure the length of a character string.
Length of the statistic data type for the char type
The length of the data in the statistical field for varchar2
2 substr ()
Intercepted string
For example, select substr ('aaaaa', 1,
The following conclusions can be drawn:
Most basic parameters need to be set
Parameters related to the OS path need to be set
Basic memory, process, and cursor parameters need to be set
If you set parameters in spfile, you
The problem is,
Oracle had to be installed some days ago due to learning needs,
However, the downloaded Oracle 9i R1 cannot be installed in my win7 environment,
Since I cannot bear win7 (I don't want to switch back to XP), I installed Oracle 10
Data synchronization between SQL Server and Oracle
When it comes to synchronization, it actually relies on the "job" timed scheduling stored procedure to operate on
1. Enable the Scott user and specify the password.
2. To enable SQL developer, you must configure the Java Virtual Machine. If it is oracle32bit, you can directly use oracle java.exe. If it is oracle64-bit, you can download the "java7 64bit plugin"
Log in with a system account with DBA permissions, such as Windows administrator and oracle users in Unix/Linux.
Log on to the console using the operating system authentication, and then modify the system or other user password:Step 1: Run
InOracleThe command and object names are case-insensitive, becauseOracleWhen processing a statement, convert all the names and commands into uppercase letters.
However, the characters in a string, whether compared or sorted, are case sensitive.
(From http://space.itpub.net/12361284/viewspace-588)
I. Move data files:-- You can use alter database or alter tablespace to move data files.1. Alter database method;-- This method can be used to move data files in any tablespace.Step 1.
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