the difference between CUBE and ROLLUP is: Cube produces a result set that shows aggregates for all combinations of values in the selected column.The result set generated by ROLLUP shows the aggregation of a hierarchy of values in the selected
a large number of insert data below is inserted in the table tables 300,000 of data, if the first time to build the index is 57s, not indexed time is 58s, so and indexing and inserting data is not related.
Insert into table Select 1, ' TMP ' | |
As a programmer, database operation is necessary, but if the operation is wrong, generally will cause more serious consequences.
Today, accidentally, did a worried thing, will be using the organization of the wrong operation of the delete, suddenly
Such as:
11 is in front of 9, because it is sorted according to string (so 1 is definitely ahead of 9), not sorted by the actual size of the number.
What to do now.
Use Orale SQL keyword: cast, convert varchar2 to int, but only if the field is
Crs-4124:oracle High Availability Services startup failed.
Crs-4000:command Start failed, or completed with errors.
OHASD failed to start:inappropriate IOCTL for device
OHASD failed to start at/u01/app/11.2.0/grid/crs/install/rootcrs.pl line 443.
1. Extract Packages
2. Double click "Step.exe" in installed directory
3. Just click Next in Configure Security Updates phase (ignore warning)
4. Choose option "Create and configure a database" in Grid installation Options
5.
Inserts multiple records in bulk with an INSERT statement, with the following example:
First set up such a table T:
Sql> DESC TName Null? Type----------------------------------------- -------- ----------------------------NUM numberBIN RAW
In general, using the Ps.setstring () method is not possible, because the Oracle driver will put a Chinese text in three bytes, plus JDBC itself on the word Fu limit to 2000, that is, 600 words, if the English characters can only to 2000, English in
--① System Change number--Gets the data time insertion time ORA_ROWSCN the SCN that returned the last modification of the row.
Select Scn_to_timestamp (ORA_ROWSCN), tt.* from TT;
--SCN and timestamp convert select TIMESTAMP_TO_SCN (sysdate) from
First, install the ORACLE11G database:
Before you install the Oracle database on the Winserver R2 operating system, you need to start the system-Local. NET framework3.5 service feature, and note that instead of downloading the. NET framework3.5
rownum
It is possible to know that rownum only applies to less than or less than equals, and if it is equal to judgment, it can only be equal to 1 and cannot be compared more than.RowNum is the number that the Oracle system sequentially assigns to
The dump file exported with exp needs to be imported with imp command.
Exp USER1/PASSWORD@TESTDB1 file=c:\dump\newdump.dmp rows=y
Imp user1/password@testdb2 file=c:\dump\dump1.dmp fromuser=fromuser touser=user1
The Exp method cannot export a table
Oracle locks are mainly TX and TM two kinds of locks, of which TM has the following modes
0:none1:null Empty2:row-s line Sharing (RS): Shared row locks3:row-x line-specific (RX): For line modifications4:share shared Lock (S): block other DML
This article only discusses the most common indexes in Oracle, that is, the B-tree index. The database version covered in this article is oracle8i.I. View the user index in the system tableIn Oracle, the system table is created automatically when
Spent two or three days to configure Oracle Enterprise Manager, referred to as EM, whether through the DBCA or EMCA commands are always failure, in the search for a lot of information without fruit, after a toss finally configured successfully, and
author:kj0231320
Team:i.s.t.o
The following is the discovery of Oracle HINT Fuzz.
Select/*+ no_push_pred (* dual-) * * from dual
With a few more hint. This syntax error may cause the current connection session to be interrupted
Study for a
1. The Oci.dll library with Navicat is not available. Oci.dll position in C:\app\Administrator\product\11.2.0\dbhome_1\BIN. You need to uninstall the Oracle12 Oci.dll Library.
2. Download instantclient-basic-windows.x64-12.1.0.2.0 compression
1, the problem is: if the multiple threads under the same time query a data is not found, then go to insert, insert the time is also a multi-threaded insert.
So think of using select for update to control not allowing multithreaded inserts (in fact,
sequence
1, "sequence" and "view", like, does not occupy the actual storage space, but only in the data dictionary to save its definition information, when the user in their own mode to create "sequence", the user must have Create_sequence system
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