Recently, I encountered a server that used Oracle databases. After learning Oracle + for advice, I finally got all the user passwords on the website background management interface. I found it too troublesome to operate oracle, in order to avoid
Select * From dba_views;Select * From user_views;
Desc dba_source; DESC user_source;Select text from user_sourceWhere name = 'your PKG name'Order by line;Union can remove duplicate records, but union all cannot.In Oracle, how does one call a stored
Sometimes we may have this requirement: Create a trigger on the table, and then when the fields A and B are updated in the table, the field C is changed to a + B, this forms the situation of modifying the base table data in the trigger.
Create a
Although the clob and BLOB fields in Oracle meet the requirements for storing ultra-large content during development, they often cause troubles in some simple usage. Clob stores pointers and cannot directly obtain the actual values. The text field
The database table contains three columns: ID name banben (Version) (the column value is a number ).
The ID is unique, the name is not unique, and the banben is not unique, but the combination of name and banben is unique. Find the ID of the row
How to use ORACLE analysis functions such as rank (), row_number (), and lag ()Row_number () over (partition by col1 order by col2)
Indicates grouping by col1 and sorting by col2 within the groupThis value indicates the sequential number after
The problem is: change the name of the employee in the employee information table to another one. For example, change Zhang to Wang and only change the name without changing the name:
Update table name set field name = 'King' | substr (field name, 2
Create or replace procedure ABCDE (MGR in number)AsType t_pubapplyrow is record (V_empno number (4 ),V_ename varchar2 (10));V_mgr EMP. Mgr % type;Type cur_test is ref cursor;Emp_cur cur_test;V_var t_pubapplyrow;BeginV_mgr: = Mgr;Open emp_cur for
All scripts and instructions for creating databases manually
System Environment:
1. Operating System: Windows 2000 Server, 128 MB of machine memory
2. Database: Oracle 8i R2 (8.1.6) for NT Enterprise Edition
3. installation path: D: \ oracle
Steps
1.Get help
imp help=y
2.Import a complete database
imp system/manager file=bible_db log=dible_db full=y ignore=y
3.Import all tables, indexes, and other objects of a specified user.
imp system/manager file=seapark log=seapark fromuser=seapark
Oracle query operation considerations
1. Fuzzy searchTo use the wildcard % and _ as character values, you must use the Escape Character After escape. For example:-- Query records starting with 'pt _ 'in the g3e_username FieldSelect * From
Deletes a column from a table in the database.
Alter table tablename drop clumn clumnname;
Some fields in the Database need to be modified because of the changes required. after checking the information on the network, the field name cannot be
Single Row Function Format:
Function name [(parameter 1, parameter 2, parameter 3 ,...)]
The parameters can be user-defined constants, variables, column names, and expressions.
A single-row function operates only one row of data in the table, and
When I used orcle today, I found that the system prompts that the account was locked when logging on to the system account (or another account). I checked the information and found the solution to the problem as follows:
CMD
C: \ Documents ents
This chapter will gradually explain the installation of Oracle 11g R2 and some problems encountered during the installation process. My installation environment is as follows:
OS: cent OS 6.2;
Oracle 11g R2;
VMware 7;
1. Create Oracle user
Oracle
Used to use Microsoft SQL server2005 to write T-SQL, suddenly use Oracle to use PL/SQL to write SQL statements, I feel a lot of details are different, a fuzzy query writing is completely different
T-SQL Writing Method:Code
Code highlighting
Efficient Paging for Oracle database queries
Due to the influence of web page rendering speed, in the C/S program, the type of grid containing thousands or tens of thousands of lines of data is basically invisible on the web page, therefore, it is
Http://blog.csdn.net/jisuanjixu/article/details/1741965excerpt s
1. Stop the Oracle listener immediately after it is started.
TNS-12545: the connection failed because the target host or object does not existTNS-12560: TNS: protocol adapter error.TNS-
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