1. Force delete a user
Sometimes, you cannot delete connected oracle users directly. You need to force kill session information:
Command:
Select Sid, serial #, username from V $ session;
Used to view the user's session information. If we
Windows XP, database Oracle 10.2.0. 1There is no backup, which is basically installed by default. It does not seem to be in the archive mode.
Symptoms: sqlplus only sysdba users can go in, other users will report: ora-01033: Oracle is initializing
View the default tablespace of the current user
SQL> select username, default_tablespace from user_users;
View the role of the current userSQL> select * From user_role_privs;
View the system and table-level permissions of the current userSQL>
First look at SQL:
UpdateCompany_info FSetF. belong_dept=Substr (F. orgid, instr (F. orgid,',',-1,1)+ 1, Length (F. orgid ))
Where:
Instr (F. orgid, '',-) in F. orgid indicates the string to be matched; ',' indicates the matching character;-1
A recycle bin database object is introduced in Oracle 10 Gb database.
The recycle bin, as its name implies, stores deleted items. In principle, it is a data dictionary table that stores information about database objects deleted by users. Objects
[Sqlserver ]:
Sqlserver considers null to be the smallest.
Sort in ascending order: NULL values are ranked first by default.
Order by case when col is null then 1 else 0 end, Col
Sort in descending order: the null value is ranked last by
I. View2. SynonymsIii. Sequence
I. ViewA view is a stored SELECT statement that displays data. You can use a view to restrict access to rows, columns, or update table content.
1.1 base tableA table that makes up a view is called a base table. In
The function can be implemented in the frontend-backend-database. Generally, a function is stored in the frontend or backend for processing, it is often neglected to be processed on the database.
In fact, data provides many objects that can
Create a sequence in Oracle with the name PK:
Create sequence PK
Start with 1
Increment by 1
Max value 2000
Nocycle
Cache 30;
Modify in the ing file:
PK // PK is the sequence name
Oracle reverse engineering refers to importing a database in Oracle, or a database in SQL Server to PD. You need to establish a database link and then perform reverse engineering operations.
Step 1: Create a database link:
Powerdesigner
Content imported from:Merge multiple rows and one column of data into one row and one column of data
Http://topic.csdn.net/u/20090714/17/5FE6A0F7-CE78-4936-BE31-21D462236059.html
Merge data in MySQL and Oracle
The like keyword is queried in Oracle. When I use like to perform a fuzzy search, I find that the data volume is incorrect. The table structure is as follows:
-- Create Table Create Table Neoerp (ID Number ( 22 ) Not Null , Productname
-- create a function type Create type strcat_type as object ( cat_string varchar2 (4000), -- set the initialization of a UDF, start a clustering function static function odciaggregateinitialize (cs_ctx in out strcat_type) return number, --
I used it before for data migration. I found it a little strange when I flipped through the SQL statements today, and it was basically easy to use. Oracle10g the test table and fields (Omitted) are created under Scott by default)
Oracle Network ConfigurationThe listener. ora, sqlnet. ora, and tnsnames. ora configuration files are all stored in the $ ORACLE_HOME/Network/Admin directory.1. sqlnet. ora ----- use this file to determine how to find a connection string that
Oracle Restoration Based on Time points
What precision can Oracle restore Based on Time points be accurate?This is a concern. The following tests are used to illustrate the problem. 1. First, make a cold backup2. Create Test DataD: \>
Connect to the database through a client and perform relevant operations
I. Access Method: SQL Plus; PL SQL Developer
Connect to the database using the system account. The link identifier is orcl.
1. Access the database through SQL PlusTwo Methods:
1. First define the standard interface IDBAccess for database operations, and define the basic functions of the interface;
2. dynamically create an interface instance (factory mode) through enumeration Parameters)
3. base class implementation
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