Oracle date types include date type and timestamp type
The date format supports the second level, the specific format can have the parameter init file: nls_date_format is set to the YYYY-MM-DD parameter to set, through the parameter settings can
Log on to Oracle remotely from UNIX today and record it now.
Because the company uses Dual IP addresses to access the database server, the client cannot be connected. You have to telnet to the IP address of the China Unicom server before
1. Telnet?
1. offline data files or tablespaces (In archivelog mode) Alter database and alter tablespace offline 1) offline data files 1. offline data files Alter database datafile 'd: \ oracle \ oradata \ xm01.dbf' offline; 2. Copy (MOVE) data files Copy
To download Oracle, you also need to register a user name for your convenience.
User: wangdetian168@gmail.comPass: qwe123qweThe password is normal. You don't need to retrieve it.Every change is troublesome.If necessary, you can view the required
1. Two Ways to delete table dataA. Delete * From my_table;B. truncate table my_table;
2. Delete the entire tableDrop table my_table;
How can we recover tables accidentally dropped? In fact, Oracle also has a similar "recycle bin"
For example, you
Today, a person in the department asked me how to trace data from a subnode record to a parent node in Oracle. For example, there is a table:
Guid parentguid
1 0
2 1
3 1
4 2
5 2
6 5
7 5
8 7
We can find all the sub-nodes under the guid
1. Enable autotrace
1.1 run utlxplan. SQL as a sys user
Sqlplus/As sysdba
SQL> @ $ ORACLE_HOME/rdbms/admin/utlxplan. SQL
1.2 execute the plustrce. SQL script to create the plustrace role
SQL> @ $ ORACLE_HOME/sqlplus/admin/plustrce. SQL
1.
The preparedstatement.exe cutebatch method calls a void executeforrows method at the underlying layer for execution. They are very lazy. to reuse this method, they lose the returned value, therefore, you cannot know what the current statement
The Oracle query you mentioned is still very common. It is often used during project development. It is impossible to load large volumes of data to the memory at a time. This will use paging, paging uses the range I used. net Microsoft followers (oh,
1 utl_file_dir Parameter Definition
Utl_file_dir is a "static parameter" in Oracle. You can set one or more paths. It is used to specify the path when file I/O operations (utl_file package can be used) are performed in PL/SQL. Utl_file_dir is a
1. Clone Process
[Oracle @ cent4 ~] $ Dbca
1. After running dbca, select "manage template ".
2. Select "create from existing database (structure and data"
3. Select the name of the instance to be cloned.
4. Enter the Template Name and description"
1. Use SQL * Plus to stop a database
1.1 stop an instance
[Oracle @ standby1 ~] $ Sqlplus/nolog
SQL * Plus: Release 10.2.0.1.0-production on Wednesday June 11 17:53:02 2008
Copyright (c) 1982,200 5, Oracle. All rights reserved.
SQL> Conn/As
Operating System: Windows 32-bit
Currently, Oracle does not provide 10 Gbit/s for download. It is useless to download a bunch of data. The latest 11g is usually 2g, nnd. Although 11G has been out for a year or two, many engineering and learning
Oracle instance startup1 Su-Oracle: Log On As an oracle user with the Oracle environment. Note-2 sqlplus sys/As sysdba, Log On As DBA3 startup [force] [restrict] [pfile = filename] [open [recover] [database] | Mount | nomount] Oracle startup
After establishing an Oracle database, you must properly configure the listener and Network Service name before your application can access our database. Therefore, listeners must be configured on the server, and network service names can be
When you retrieve data from Oracle database,
When some records has null value in some columns,
If you want to display the records more meaningful,
With the columns whose value is null being displayed with a meaningful string,
You can turn help
Here is an example:
Prepare data:
Create Table fruit
(
ID number (4) primary key,
Name varchar2 (150)
);
Insert into fruit (ID, name) values (1, 'apple ');Insert into fruit (ID, name) values (2, 'bana ');Insert into fruit (ID, name) values (3,
The following constraints are listed in detail:
1. Primary Key constraints:To add a primary key constraint to a column, this column must meet the condition that it is left empty.Because of the primary key constraint: A column is restricted, and the
1) create a sequence command
Create sequence [user.] sequence_name[Increment by N][Start with N][Maxvalue n | nomaxvalue][Minvalue n | nominvalue];Increment by: Specifies the interval between serial numbers. This value can be a positive or negative
I have always hoped that the Oracle client will not be installed on the client. No matter whether I use Java, Delphi, and C ++, when I know that Oracle10g has released the Instant Client lightweight client, I will start searching for relevant
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.