System environment:
1, operating system: Windows 2000
2. Database: Oracle 8i R2 (8.1.6) for NT Enterprise Edition
3, Installation path: c:oracle
Access method:
1, connect into the Sql*plus
Log in as a System/manager user,
Sql> Conn
The trunc function is the Intercept date, which can be accurate to the hour. The date data type is still available after the interception.
First, basic usage1, the default interception to the day, for example:
Select Trunc (sysdate) from dual;
One, data type
1, CharChar is a fixed-length string that is padded with spaces to reach its maximum length. If the column does not insert data as NULL, the insertion data is not in the defined length, padding with a space.
2, ncharThis is a
Scene
Suppose we have such an Access record table accesstable, which is the user's unique identification (USERID), the Access Time (Visittime), and the version information reported at the time of the visit (ver). The requirement is to query what
Method:
The code is as follows
Copy Code
GROUP BY XX has count (*) >1,rowid,distinct,temporary table,procedure
The following statement can query that the data is duplicated:
The code is as follows
Method One, configure automatic startup when Oracle data is installed
1. After installing Oracle database: Execute Dbstart and Dbshut will prompt:
The code is as follows
Copy Code
[oracle@oracle11g ~]$
This article takes SQL Server 2k as an example to illustrate the specific implementation of SQL Server to an Oracle connection server.
1. require PC to install Oralce client software and sqlserver2000 software.
2. Client configuration
The article provides the database tutorial the connection code is an ASP tutorial. NET and Oracle,sql server,access database class Oh, if you're a asp.net tutorial developer then you're cool, this is a. NET can be used with the Oracle,sql server ,
Overview
Procedures and functions in pl/sql, often called subroutines, are a special type of pl/sql blocks that can be stored in a database in a compiled form and invoked for subsequent blocks.
Same point: A program that completes a specific
Recently, a lot of people in the group discussed Oracle security issues, and today I found some information to learn
Gets some of the properties of the Oracle current session (useful for SQL injection environmental judgments)
The Sys_context
If the view definition includes a condition, such as a WHERE clause, and its intent is to ensure that any INSERT or UPDATE statement referencing the view applies a WHERE clause, you must define the view with the with CHECK OPTION. This option will
Methods for detecting bad blocks of Oracle databases:
1, use DBV (DB File Verify) tool;
2, use Rman (Recovery Manager) tool;
DBV (DB File Verify) Tool:
External command, physical media data structure integrity check;
It can only be used for
1.ASCII returns the decimal number corresponding to the specified character;
Sql> Select ASCII (' a ') a,ascii (' A ') a,ascii (' 0 ') zero,ascii (') space from dual;
A A ZERO space--------- --------- --------- ---------65 97 48 32
2.CHR gives an
If you want to reprint, please specify the source!
As anyone who has ever used Oracle knows, to change the column names and order of tables in Oracle is a trivial matter, here's a simple way to do it.
Sql> Select object_id from all_objects where
The Oracle tutorial you are looking at is: Oracle 8x monitor SYSDBA role User login. Prior to the Oracle 8i release, the internal user was used to perform the database startup and shutdown, as well as create database operations; Oracle has been
When setting the password for a database instance, be careful not to start with a number, or you will experience an ORA-00988 missing or invalid password (password missing or invalid) error.
After Oracle 10g installation is complete, you can use
Here's the solution:
1-from the command prompt, stop isqlplus:C:\>isqlplusctl stop
2-assuming that you install Oracle under C Drive, run the following comands:
C:\>set oracle_home=c:\oracle\product\10.2.0\db_1
C:\>set JAVA_HOME=%ORACLE_HOME%\JDK
Buffer: Download data buffer, in bytes, default dependent on operating system
Consistent: The data involved during the download remains read only, and the default is n
Direct: Using Passthrough method, the default is n
Feeback: Displays the number
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