Problem: Sort unordered text files with 0.2 billion rows in a column to generate a new sorted text file.
1. Generate unordered file, bigfiletest. JavaCodeAs follows:
Import Java. io. bufferedwriter; import Java. io. filewriter; import Java. util.
The system has a table that is not used. If you want to delete the table or delete the data in the table,
SQL> drop table testtable;Error at line 1:ORA-00054: Resource busy and acquire with Nowait specified
The resources are busy, requiring Nowait
Motivation:
You want to use an SQL statement in Oracle to directly perform insert/update operations.
Note:
When writing SQL statements, we often encounter a large number of insert/update statements at the same time, that is, when there is a record,
Raise_application_error is used to customize incorrect messages in PLSQL user programs.
This exception must be used in database subprograms (processes, functions, packages, and triggers), but not anonymous blocks and client subprograms.
Syntax:
Create a user in Oracle and set the permission _ basic cmd
C:/> sqlplus
SQL * Plus: Release 9.2.0.1.0-production on Saturday September 29 15:08:34 2007
Copyright (c) 1982,200 2, Oracle Corporation. All rights reserved.
Enter the User name: SYS as
The Oracle client of any current version cannot be installed properly on Windows 7 of any version.
This is mainly because the operating system version does not meet the requirements for Oracle Installation. However, you can modify refhost. XML to
Single-row functions are mainly divided into five types: The varchar2 function, the number function, and the date function,
Common functions,
Conversion functions
Character FunctionsThe main function is to operate string data, such:. Upper (string
Oracle provides a very useful clause check, which can automatically check data. It is used to create a table structure. For example:
Create Table worker(Empno number (4) primary key,Name varchar2 (10 ),Age number (2) Check (age between 18 and 65 ),/*
The main process of SQL parsing in Oracle:
The cursor concept we mentioned is complicated. It can be a cursor in a client program, a private cursor in a service process, and a shared cursor in a server shared pool. If a cursor is opened, its
Oracle statspack and AWR are two important tools for analyzing databases. The statspack used by Oracle 9i has released AWR for 10 Gb. The data they analyzed is almost the same.
Statspack installation and Report
***************
1. Find the oraparam. ini file under the install directory and find the [Certified Version] node,Add 4.0 after # windows = 5.0, 5.1, 5.2, and 6.1, and then add the following content to the 5.2 node.After
When the database is an SQL Server, the Enterprise Library is very accessible. You can use the Enterprise Library Configuration tool to configure and then access the database in the code, however, it is not that convenient when data is replaced with
Posted on Xu jianxiang
1. Execute the exp command to export the DMP File
Migrate some tablesExp username/password @ db_name tables = (Table1, table2) file = filepath. dmpMigrate a database under a userExp username/password @ db_name owner = (user1
Tree query and connect by in OracleUsing connect by and start with to create a report similar to a tree is not difficult, as long as you follow the following basic principles:When using connect by, the order of each clause should
Port Number
Description
1521
Default port of TNS Listener
1522-1540
Port used by TNS Listener
1575
Default port of Oracle Names Server
1630
Default port for Oracle Connection Manager-client
There is an emp table, two fields, employee id and supervisor id. 1, emp_id, 2, manager_idIf you have the following information, an employee can correspond to one or more supervisor IDs, that is, an employee may have several supervisors.Emp_id
-- Create table t (a NUMBER); -- create or replace procedure p_parallel (p_min in number, p_max in number) isbegin insert into t select trunc (DBMS_RANDOM.VALUE (p_min, p_max) from dual; COMMIT; END p_parallel;/-- create jobDECLARE x NUMBER; BEGIN
Web development involves two aspects: layout and content.On the layout, the CGI Module of PERL is powerful and easy to use. In just a few lines, HTML webpages can be dynamically generated.
To be fair, you must use a database to manage the content.
1. If windows is installed in the virtual machine, after you directly click [device]> [install enhancement function], the optical drive will automatically load the optical drive and directly go in, there should be an install program to run directly.
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