Comparison of common functions of SQL Server and Oracle --------- Mathematical functions 1. Absolute ValueS: Select ABS (-1) ValueO: Select ABS (-1) value from dual 2. INTEGER (large)S: Select ceiling (-1.001) ValueO: Select Ceil (-1.001) value
I haven't written a demo for a long time, and I haven't written a page for a long time, so I have to itch my hands,
The following describes how to access the Oracle database through the ASP. NET page through system. Data. oracleclient,
In fact,
In the previous blog, I introduced how to use Oracle Developer Tools for Visual Studio. NET in combination,
This blog post will focus on how to access the Oracle database by using the sqldatasource control,
In fact, as long as the environment is
Xuzhou needs to connect to a third-party database. The original database uses a Windows Cluster and is recently changed to the RAC mode, leading to frequent JDBC connection errors. Solution:
1. connection string Configuration:
JDBC: oracle: thin: @
Method 1:
Drop user XXXX cascade;
Drop tablespace XXXX including contents;
Method 2:
Write Stored Procedure Implementation
Declare Type name_list Is Table Of Varchar2 ( 40 );Type type_list Is Table Of Varchar2
There is a new feature in 11g. When the table has no data, no segment is allocated to save space.
Solution:
1. Insert a row and then roll back to generate a segment.
This method inserts data into an empty table and then deletes it, resulting
Http://timnity.javaeye.com/blog/280383
Since last week, a problem occurred in the Oracle database on the server. In less than half a day, the maxsession (150) problem will be reported. It must be because the maximum number of database sessions
Data Dictionary dict always belongsOracleUser SYS.1. User:Select username from dba_users;Change PasswordAlter user spgroup identified by spgtest;2. tablespace:Select * From dba_data_files;Select * From dba_tablespaces; // tablespace
Select
From: http://blog.csdn.net/compard/archive/2007/09/17/1788244.aspx
I. Job running frequency settings
1. Run at a fixed time every day, such as am: trunc (sysdate + 1) + (8*60 + 10)/24*60
2. Provided in Toad:
Daily: trunc (sysdate + 1)
The following are common operations and basic commands in development: Start listeningLSNRCTL start Disable listeningLSNRCTL stop Start DatabaseSqlplus as sysdbaSQL> startup Stop DatabaseSQL> shutdown immediate Start the dbconsole ServiceEmctl
In Oracle, to query the first N records according to specific conditions, use rownum.Select * from EMP where rownum The book also tells you that you cannot use ">" for rownum, which means that if you want to useSelect * from EMP where rownum> 5It is
How to configure to connect the client to the database:To enable a client machine to connect to the Oracle database, you must install the Oracle client software on the client machine. The only exception is that the JDBC thin mode can be used when
Each row of data in an Oracle database table has a unique identifier, or rowid, which is usually used to access data in Oracle. Rowid requires 10 bytes of storage space and is displayed with 18 characters. This value indicates the physical location
ArticleDirectory
Questions about Oracle Stored Procedure
1. Basic StructureCreate or replace procedure(Parameter 1 in number,Parameter 2 in number) IsVariable 1 integer: = 0;Variable 2 date;Begin
End stored procedure name
2.
Continue to look at the second case of the query, including the table connection:
SQL> Create Table T as select * From dba_users;
The table has been created.
SQL> Create Table T1 as select * From dba_source;
The table has been created.
SQL>
We have introduced a common regexp_like function in the regular expression group in Oracle. Here we will introduce a function regexp_instr. This regular expression function is not used as many as the previous one, but will also be used occasionally.
When installing Oracle for 10 Gb, you may encounter a major problem. Follow the installation guide step by step and you will find that four parameters are not properly set, as shown below:
Error: 'rmem _ default' is an unknown keyError: 'rmem _ max
1. Copy the table structure and data:
Create Table table_name_new as select * From table_name_old
2. copy only the table structure:
Create Table table_name_new as select * From table_name_old where 1 = 2;
Or:
Create Table table_name_new like
Using System; using System. collections. generic; using System. linq; using System. text; using System. IO; using System. drawing; using System. runtime. interopServices; using Excel = Microsoft. office. interop. excel; using System. globalization;
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