First, give a smallProgram:
1
Set
Serveroutput
On
2
Declare
3
Maxrecords constant
Int
:
=
100
;
4
I
Int
:
=
1
;
5
Begin
6
For
I
In
1
.. Maxrecords Loop
7
Insert
After a 64-bit Oracle 10g Database is installed on the 64-bit win2003 operating system, you can connect to the database using PLSQL over the network, but the server cannot connect to the database.Solve the problem as follows:1. Install the 32-bit
Oracle official site http://www.oracle.com/Oracle base campOtn.oracle.com http://otn.oracle.com/Metalink.oracle.com Co http://metalink.oracle.com/Ask Tom home http://asktom.oracle.com/asktomOracle documentation http://www.oradoc.com/index.html
Oracle 10g R2 re-built Em dB control. If you have not modified the IP address or machine name after installation, you can skip steps 1 and 2.1. Drop configuration files and repository run:Emca-deconfig dbcontrol DB-repos drop
2. logon sqlplus as
I have been using sqlserver and have no chance to access Oracle. In the past few days, I have installed Oracle 9i and installed it in my previous notebook, today, I installed it on my desktop again. An error was reported when the installation was
During work, you need to import data from the gis_weichai_data_1s table in one database to the gis_weichai_data_1s table in another database. The database servers are all remote ! My implementation method is to use PL/SQL locally to operate two
1. Balanced
It is used to store string or character data. The main types include varchar2, Char, and long.
(1) varchar2
Used to store variable-length string or string-type data. during use, you must specify its maximum byte data.
(2) Char
It is
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
Oracle databases are difficult to install, and it is not as easy to uninstall as Microsoft products. The control panel does not unmount oracle9.Program. You can choose "start"> "program"> "Oracle Installation products-universal installer" to go to
Create or replace procedure tablepage_select (v_page_size int, -- the size of a page of listV_current_page int, -- the current page of listV_table_name varchar2, -- the talbe nameV_order_field varchar2, -- the order FieldV_order_sequence varchar2, --
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
The database uses a lock to ensure that at most one transaction can modify a given piece of data at any given time. Essentially, it is the lock mechanism that makes concurrency control possible.
Oracle Blocking Policy:1. Oracle locks data at the
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.
1. User
View the default tablespace of the current user: SQL> select username, default_tablespace from user_users;
View the role of the current user: SQL> select * From user_role_privs;
View the system and table-level permissions of the current
| Connection or async string1 | string2Concat same as Concat (string1, string2)Initcap upper the first letter of all words in the string. initcap (string1)Instr: locate the substring, index from 1 instr (string1, substring2)Length: returns the
This article describes how to export a database from a Linux server.
Next, deploy the same library on a newly installed 64-bit Windows 2003 host.
So we have all the procedures from installing Oracle> creating an instance> importing a database.
Oracle's analysis function over and window function eg: Related parsing: Table t_pi_part field ID code namevalue 1 222 avalue 2 222 bvalue 3 333 C add Row labels to the same part code, sort select P by ID. *, row_number () over (partition by P. code
1
--
-------
2
Same commands as SQL2000
3
Create tablename
4
Delete table drop
Table
Tablename
5
There is also alter
Insert
Into
Update and so on.
6
To delete a table, directly Delete tablename.
7
--
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