Introduction and Use of Cursor in Oracle

I. Concepts A cursor is a memory workspace of SQL, defined by the system or user as a variable. The function of cursors is to temporarily store blocks of data extracted from databases. In some cases, data needs to be transferred from tables stored on disk to computer memory for processing, and finally the processing results are displayed or ...

Posted by lillyapps on Sat, 18 May 2019 01:36:31 -0700

SQL Injection for JDBC Connecting MySQL

* JDBC is a bridge for Java to operate database. With the help of the data-driven provided by the database and the database language to be operated on, After executing the database statement, you can crud the records in the database.* See the demo case of linking mysql database to simulate landing: Case 1: SQL injection, deceiving th ...

Posted by DedoMraz on Sat, 18 May 2019 01:06:43 -0700

PostgreSQL sharding: Citus Series 4 - DDL Operational Specification (new DB, TABLE, SCHEMA, UDF, OP, users, etc.)

Label PostgreSQL, citus, new objects, new databases, new users background citus is a plug-in of PG. The plug-in mainly deals with ordinary SQL (non-UTILITY) plus HOOK, and uses UDF to create new partitions for tables. If the user wants to execute DDL, then CITUS can not take over, how should it operate? In two cases, one needs to be executed ...

Posted by ThEoNeTrUeAcE on Fri, 17 May 2019 15:47:15 -0700

Configure Oracle 19c DataGuard Step By Step Guide

This paper contains the following two knowledge points. The environmental information is shown in the following figure: Deploy Data Guard service; Configuration and use of Data Guard Broker.I. Deployment of Physical Standby 1.1 Main Library Preparations 1.1.1 Enable force logging SQL> ALTER DATABASE FORCE LOGGING; 1.1.2 Create standby data ...

Posted by alin19 on Fri, 17 May 2019 08:49:27 -0700

GEO Usage of Redis Advanced Data Structure

demand How to implement a "accessory person" or a nearby "store" function? requirement analysis It can be done based on the database, given a coordinate, with this coordinate as the radius r, j uses sql to select the elements of the approximate circle for display. select id from positions where x > x0- ...

Posted by raan79 on Fri, 17 May 2019 03:42:24 -0700

Installation and Management of Freeradius System

Install freeredius in CentOS 6.5: yum -y install httpd httpd-devel mysql mysql-server mysql-devel yum -y install php php-devel php-mysql php-common php-gd php-mbstring php-mcrypt php-xml /etc/init.d/httpd start /etc/init.d/mysqld start chkconfig httpd on chkconfig mysqld on mysqladmin -u root password 'newpassowrd' In ...

Posted by gofeddy on Thu, 16 May 2019 23:42:41 -0700

A crawl record of JdbcTemplate

After more than three months, I finally remember that I still have a blog. Actually, I don't forget it. I just don't have time to write a blog when I'm busy at work. So I'll make time tonight to record a problem I encountered in my last job and share it with my garden friends so as to avoid going into a hole.   Last week, JdbcTemplate execute ...

Posted by lmg on Thu, 16 May 2019 22:05:44 -0700

oracle starts with three steps

There are three processes to start oracle, nomount, mount, open I. nomount stage During the nomount phase, you can see that the instance has started.The oracle process creates a shared memory pool based on the parameter file. SQL> startup nomount; ORACLE instance started. Total System Global Area 1653518336 bytes Fixed Size 22138 ...

Posted by JellyFish on Thu, 16 May 2019 16:56:20 -0700

Django Summarizes Knowledge Points

### Caching and Query Sets Each QuerySet contains a cache to reduce the actual operation on the database. Understanding this concept will help you improve query efficiency. For the newly created QuerySet, its cache is empty. When the QuerySet is first submitted, the database performs the actual query operation. Django stores the results of the ...

Posted by stephenalistoun on Thu, 16 May 2019 15:05:03 -0700

Database Chapter (Oracle) - - Installation of Non-Graphic Interface and Database Migration in Linux System

Installation of non-graphical interface and database migration for Linux system Database Installation Installation of dependency packages yum install binutils compat-libstdc++-33 elfutils elfutils-libelf-devel gcc gcc-c++ glibc glibc-common glibc-devel glibc-headers libaio libaio-devel libgcc libstdc++ libstdc++-devel make sys ...

Posted by pontiac007 on Thu, 16 May 2019 02:36:37 -0700