Primary database
ip:192.168.2.100
Db:rdbms 11.2.0.4
Oracle_sid:test
Global_name:test
From the database
ip:192.168.2.14
Db:rdbms 11.2.0.4
Oracle_sid:orcl
Global_name:orcl
1 for test, ORCL Library to open archive2 Configure the TEST,ORCL library
Problem Description:
Today, in Saturday, I didn't expect to receive a call from a developer who said it was necessary to add an index field to the partition table (this is a large partition table with more than 1T of data more than 100 million rows,
Previously developed when used more of the MySQL and SQL Server,oracle used less, more unfamiliar to use, MySQL and SQL Server to use more similar to the use of Oracle and they are different, Oracle in the creation of a database to correspond to a
1. View All Users:
SELECT * from Dba_users;
SELECT * from All_users;
SELECT * from User_users;
2. View user or role system permissions (directly assigned to user or role system permissions): SELECT * from Dba_sys_privs;SELECT * from
Reference Address: http://wentao365.iteye.com/blog/779492
SELECT ' Current time ' TITLE, To_char (sysdate, ' yyyy-mm-dd hh24:mi:ss ') times from DUAL--the current time of the UNION all SELECT ' one minute before the first hour before the day
Oracle creates databases, tablespaces, users, and authorizes
You can use the default database ORCL after installing Oracle database software, or you can create a custom database as needed. Table spaces are used to categorize resources in a database,
The Row_number () syntax is as follows:
1, Row_number () over (Order BY column DESC) first returns a sequence number for each record by descending the column columns:
SELECT d.*, Row_ Number () over (order by D.r_opate_num DESC) as INX from
--t_veh_traffic_vio Illegal table
--vhcl_info Vehicle Information table
--Single table modification, revision of April 2014 illegal data synchronization sign bit
update T_veh_traffic_vio t
Set T.synchflag = 0, T.synchstatus = ' u '
where T.WFSJ
Oracle cannot import a solution for empty tables
C:\users\administrator>sqlplus/as SYSDBA
Sql*plus:release 11.2.0.1.0 Production on Sunday August 17 19:24:29 2014
Copyright (c) 1982, Oracle. All rights reserved.
Connect to:Oracle Database 11g
Http://blog.sina.com.cn/s/blog_4ab645500100r6vo.html
A long time ago installed Oracle, today finally decided to learn a lesson, the results of a morning to contribute to how to connect the database
What to do if you forget the username and password
Before Oracle9i, Chinese is sorted according to binary encoding.
In oracle9i, according to pinyin, radical, stroke sorting function. Set Nls_sort value
Schinese_radical_m sorted by radical (first order), stroke (second order)
Schinese_stroke_m
1 Insert a piece of data (or delete it again), wasting time, sometimes hundreds of tables will be exhausted.
2 before creating a database
Use code:
SQL code
alter system set DEFERRED_SEGMENT_CREATION=FALSE;
Adjust and build tables
Neither of these
When you need to use these 2 times, first of all, simply:
If you order the monthly product of March 15, the end of the month, then you should charge a 17-day fee, this time should determine whether the order time is greater than the beginning of the
Reprinted from: http://blog.csdn.net/redarmy_chen/article/details/7351410
Oracle Two-time subtraction default is days
Oracle Two-time subtraction default is the number of days *24 to the difference in hours
Oracle Two-time subtraction the default
public static bool DBBackup (string dmpfilename, String logfilename)
{
return value
BOOL result = FALSE;
Backup command, get "/C EXP username/password @ database service name full=y inctype=complete" from XML file
String backupcmd = Msgxml.getconfig
1, previously used OCCI operation of the Oracle database is a failure, and later found that I downloaded the library version and the corresponding DLL version of the inconsistency caused: such as 32 library, but downloaded 64-bit DLL, resulting in
Workaround One:
ERROR:
ora-01034:oracle Not available
ora-27101:shared Memory Realm does not exist
Process id:0
session id:0 Serial number: 0
because this small mistake, has been tossing me for several hours, the special record as follows.
In Oracle, it is not difficult to get the year in the date, such as taking the year out of the sysdate. The common approach is to select To_number (sysdate, ' yyyy ') from dual, and in fact, Oracle has a better way of using the Extract function,
Transferred from: http://www.jb51.net/article/19541.htm
An example of a cursor if,for
Create or replace procedure peace_if
Is
Cursor Var_c is select * from grade;
Begin
For temp in Var_c loop
If Temp.course_name = ' OS '
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