1. Use the Oracle user to create a script file to start and stop oracle in the bin directory of the Oracle application (for example,/Oracle/product/9.2.0/bin.For exampleStartoracle. bat
Echo "Start oracle ......"LSNRCTL startSqlplus/nolog
I. background
Structured Query Language (SQL) is a common language used to access relational databases. It is a fourth-generation language (4gl) and features non-procedural execution, you do not need to specify the operator
Method and
From: http://www.itpub.net/showthread.php? S = & postid = 8169093 # post8169093
For the rownum problem in Oracle, many documents do not support>, >=, =, between... and. The preceding symbols can only be used (,> =, =, .. and will prompt SQL syntax
In the project development process, I encountered the following problem:Use the freetextbox control to input formatted content and save it to the database. However, an error is always reported during insertion: the string is too long.I searched the
Background: Recently, the database server of the company was managed in a unified manner, collect databases distributed across servers to one machine (252) . ip 98 . One of the databases is relatively small, with exp export with imP
Declare
Cursor
Cur_m_shohinhotel
Is
Select
H. seq, H. usedate,To_char (to_date (
'
2006/12/12
'
)
+
H. usedate
-
1
,
'
Yyyymmdd
'
)
As
Useday,H. cyclcd, H. mealtypecd, H. roomcategorycd, H.
Declare
Existflag int;
Existcolflag int;
Begin
Select count (1) into existflag from user_tables where table_name = upper ('print _ Bill ');
Select count (1) into existcolflag from user_tab_columns where table_name = upper ('print _ Bill ') and
Oracle + SDE data backup and recovery
1. Complete database backupExp System/password @ Sid Full = y file = D: \ system. dmp log = D: \ system. Log2. Data warehouse receiving(A) Delete SDE and SDE user from the databaseDrop user SDE cascade;Drop
Modify the character set of Oracle 10 GB
Modify the database character set to zhs16gbk.View server character setsSQL> select * from V $ nls_parameters;Modify:$ Sqlplus/nologSQL> Conn/As sysdbaIf the database server has been started, run shutdown
Self join is a commonly used connection method in SQL statements. Using Self join, you can treat one image of your table as another table, so that you can get some special data.
When should we use a self-connection? Let's take a look at the
Although natural join (natural join) is actually rarely used, it is actually very useful. If it can be used frequently, it is actually very convenient.
A natural join is to search for fields with the same data type and column name in the two
Function open_cursor: open a dynamic cursor and return an integer;
Procedure close_cursor (C in out integer); closes a dynamic cursor. The parameter is the cursor opened by open_cursor;
Procedure parse (C in integer, statement in varchar2,
1. Hide query result F2
2. view object details F4
3. Clear screen F7
4. Call up the previously executed SQL command F8
5. Execute all SQL statements F9
6. directly execute the current SQL Ctrl + enter
7. Complete the table name or prompt to
ArticleDirectory
. In the. NET program, you can use the ODP call feature to operate the Oracle database. Today, let's talk about the data batch insertion function. The technology used is not very high. I believe many of my friends have come
Oracle is a large database that can be used to store massive data. There are also various ways to import data sources, some of which are constantly added as the business grows, and some are also imported in batch during business system
ArticleDirectory
Oracle has many advantages, but if it is improperly used, it cannot take advantage of it. Here is my little experience in Oracle development, share with you.
Oracle has many advantages, but if it is improperly used, it
1. View partition size
Select segment_name, partition_name, Bytes/1024/1024 used_mbFrom dba_segmentsWhere segment_name in ('tableone ','Tabletwo ')
2. Compare the data differences between the two tables
(Select * From Table1)
Minus
(Select
To obtain a data set from Oracle procedure, the ref cursor method is usually used. To obtain this cursor, there are several ways:
1. dynamic SQL return:
In this case, procedure operations are usually relatively simple. For example, you can use a
Context: saasreportprocontext CTX = factory. saasreportprocontextfactory. getsaasreportprocontext ();
There are three parameters: String reportname, string module, string type
In LINQ to SQL
VaR query = from o in CTX. reportorWhereO.
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