Меню

Как правильно установить pl sql developer

Как правильно установить pl sql developer

This guide assumes that you plan to download SQL Developer and run it as a freestanding tool.

If you plan to use SQL Developer as part of an Oracle Database release installation, see the Oracle Database installation documentation. Starting with Oracle Database Release 19c, SQL Developer is no longer available with Oracle Database.

Please read the information in this chapter before you install Oracle SQL Developer. This chapter contains the following major sections:

1.1 SQL Developer System Recommendations

This section describes the recommended minimum values for CPU, memory, display, disk storage, and other resources on the supported systems.

SQL Developer requires JDK 8 or 9, which you can download from:

Table 1-1 Recommendations for Windows Systems

Windows Server 2008

Windows Server 2012

CPU Type and Speed

Pentium IV 2 GHz MHz or faster

65536 colors, set to at least 1024 X 768 resolution

500 MB if you already have JDK 8

110 MB if you do not have JDK 8

Table 1-2 Recommendations for Linux Systems

Resource Recommended Minimum Value

Red Hat Enterprise Linux 5.5

SUSE Linux Enterprise Server 10 SP2

CPU Type and Speed

Pentium IV 2 GHz or faster

65536 colors, set to at least 1024 X 768 resolution

Table 1-3 Recommendations for Mac OS X Systems

Resource Recommended Minimum Value

Apple Mac OS X Version 10.8.3

CPU Type and Speed

Dual 1.25 GHz G4/G5 (1 GHz G4 minimum)

«Thousands» of colors

1.2 Installing and Starting SQL Developer

This section contains subsections with instructions for installing SQL Developer on all supported systems.

Also, do not install SQL Developer into an existing sqldeveloper folder or directory. Either delete the existing sqldeveloper folder or directory first, or ensure that the new SQL Developer version is installed into a different location.

If you are using a prerelease (Early Adopter ) version of SQL Developer, and if you want to be able to continue to use this prerelease version after installing the official release kit, you must unzip the official release kit into a different directory than the one used for the prerelease version.

Starting with Oracle Database Release 19c, SQL Developer is no longer available with Oracle Database.

Before you install SQL Developer, look at the remaining sections of this guide to see if you need to know or do anything else first.

The steps for installing SQL Developer depend on whether or not you will be using it on a Windows system that does not have Java SDK (JDK) release 7 or later installed:

For a Windows system with JDK release 8 or later installed, follow the instructions in Windows Systems.

For all other systems (Linux and Mac OS X systems, and Windows systems with no JDK release 8 or later installed), follow the instructions in Linux and Mac OS X Systems.

1.2.1 Windows Systems

If a Windows 64-bit SQL Developer file that includes JDK 8 is available, you can download and install that on a Windows 64-bit system, and SQL Developer will use the embedded JDK that is provided.

However, if you want to use a JDK on your Windows 64-bit system, you can install the JDK (if it is not already installed) and the Windows 32/64-bit SQL Developer file, and SQL Developer will use the JDK that is installed on your system. The bit level (32-bit or 64-bit) of the JDK that you install will determine if SQL Developer runs as a 32-bit or 64-bit application.

Do not install SQL Developer into an existing sqldeveloper folder. Either delete the existing sqldeveloper folder first, or ensure that the new SQL Developer version is installed into a different location.

To install on a Windows system, follow these steps:

If you do not need or want to install a suitable Java Development Kit (JDK 8 or 9), go to step 3. Otherwise, download and install the JDK as follows:

On the Java SE Development Kit 8 Downloads page ( http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html ), in the table of Java SE Development Kits, accept the Oracle Binary Code License Agreement for Java SE.

Click the link for the download that you need (for example, the Windows x64 link for a Windows 64-bit system).

Save the file anywhere on your system (such as a «temp» folder).

Read and accept the license agreement.

Follow the instructions for downloading and installing SQL Developer.

1.2.2 Linux and Mac OS X Systems

Do not install SQL Developer into an existing sqldeveloper directory. Either delete the existing sqldeveloper directory first, or ensure that the new SQL Developer version is installed into a different location.

To install and start SQL Developer, follow these steps:

Unzipping the SQL Developer kit causes a directory named sqldeveloper to be created under the directory. It also causes many files and directories to be placed in and under that directory.

1.3 Migrating User Settings from a Previous Release

The first time you start SQL Developer after installing it or after adding any extensions, you are asked if you want to migrate your user settings from a previous release. (This occurs regardless of whether there was a previous release on your system.)

If you choose not to migrate your user settings and then later want to do so, go to the SQL Developer user preferences location, which is C:\Users\ \AppData\Roaming\SQL Developer\ systemn.n.n.n.n for Windows and

/.sqldeveloper/system n.n.n.n.n for Linux or Mac, and delete the system.n.n.n.n folder. Then restart SQL Developer, and you will be asked about migrating settings from the previous release.

To migrate user settings from a previous SQL Developer release:

Related Topics

1.4 Migrating Information from Previous Releases

If you want to use any user-defined reports or the SQL history from a previous version, see Location of User-Related Information for information about where these are located. If you have user-defined reports and SQL history from Release 1.0, they are modified by any later SQL Developer release to a format that is different from and incompatible with Release 1.0.

To migrate the SQL Developer preferences (specified by clicking Tools and then Preferences) from a previous release, ensure that the previous installation of the software is available in the same system.

If you want to uninstall your prerelease version of SQL Developer before installing this release, see Uninstalling SQL Developer.

1.5 Location of User-Related Information

SQL Developer stores user-related information in several places, with the specific location depending on the operating system and certain environment specifications. User-related information includes user-defined reports, user-defined snippets, SQL Worksheet history, code templates, and SQL Developer user preferences. In most cases, your user-related information is stored outside the SQL Developer installation directory hierarchy, so that it is preserved if you delete that directory and install a new version.

Table 1-4 Default Locations for User-Related Information

Resource Recommended Minimum Value

Windows: C:\Users\ \AppData\Roaming\SQL Developer\UserReports.xml

Windows: C:\Users\ \AppData\Roaming\SQL Developer\UserSnippets.xml

Mac OS X: /Users/ /Library/Application Support/ SQLDeveloper/UserSnippets.xml

Windows: C:\Users\ \AppData\Roaming\SQL Developer\SqlHistory.xml

Mac OS X: /Users/ /Library/Application Support/ SQLDeveloper/ SqlHistory.xml

Windows: C:\Users\ \AppData\Roaming\SQL Developer\ CodeTemplate.xml

Mac OS X: /Users/ /Library/Application Support/ SQLDeveloper/ CodeTemplate.xml

SQL Developer user preferences

Windows: C:\Users\ \AppData\Roaming\SQL Developer\system n.n.n.n.n

If you want to prevent other users from accessing your user-specific SQL Developer information, you must ensure that the appropriate permissions are set on the directory where that information is stored or on a directory above it in the path hierarchy. For example, on a Windows system you may want to ensure that the SQL Developer folder and the \ \AppData\SQL Developer folder under Users are not sharable; and on a Linux or Mac OS X system you may want to ensure that the

/.sqldeveloper directory is not world-readable.

1.6 Database Certification for SQL Developer (Oracle and Third-Party)

This section describes Oracle and non-Oracle (third-party) databases that are certified for use with SQL Developer.

Table 1-5 lists the Oracle database certifications.

Table 1-5 Oracle Database Certification for SQL Developer

Oracle 12c, 18c, 19c

Oracle Database Express Edition

SQL Developer can be used to view metadata and data of several non-Oracle (third-party) databases. Table 1-6 lists the third-party database certifications.

Table 1-6 Non-Oracle (Third-Party) Database Certification for SQL Developer

Resource Type System (Windows, Linux, or Mac OS X)

For any DB2 release: db2jcc.jar and db2jcc_license_cu.jar files required; available from IBM.

Microsoft SQL Server

Sybase Adaptive Server

JDBC driver files tdgssconfig.jar and terajdbc4.jar required; included (along with a readme.txt file) in the TeraJDBC__indep_indep.12.00.00.110.zip or TeraJDBC__indep_indep.12.00.00.110.tar download.

If you need to use SQL Developer to migrate a Microsoft Access database. use the previous version of SQL Developer (4.0.3) and the 32-bit version of the Java 7 JDK.

1.7 Advanced Security for JDBC Connection to the Database

You are encouraged to use Oracle Advanced Security to secure a JDBC connection to the database. Both the JDBC OCI and the JDBC Thin drivers support at least some of the Oracle Advanced Security features. If you are using the OCI driver, you can set relevant parameters in the same way that you would in any Oracle client setting. The JDBC Thin driver supports the Oracle Advanced Security features through a set of Java classes included with the JDBC classes in a Java Archive (JAR) file and supports security parameter settings through Java properties objects.

1.8 Finding SQL Developer Accessibility Information

Also, check the SQL Developer release notes ( readme.txt file) to see if there are any currently known issues regarding accessibility.

1.9 Using a Screen Reader and Java Access Bridge with SQL Developer

Unless otherwise indicated, the information is this section also applies to Data Modeler and Data Miner.

To make the best use of our accessibility features, Oracle Corporation recommends the following minimum configuration:

Windows XP, Windows Vista

Follow these steps to set up a screen reader and Java Access Bridge.

Install the screen reader, if it is not already installed.

Refer to the documentation for your screen reader for more information about installation.

Install SQL Developer.

If you are using Java J2SE 1.6.0_24 or higher but before Java 7 Update 6, go to If You Need to Install Java Access Bridge and follow the instructions there.

Start your screen reader.

The preceding steps assume you are running Windows and using a Windows-based screen reader. A console window that contains error information (if any) will open first and then the main SQL Developer window will appear, after SQL Developer has started. Any messages that appear will not affect the functionality of SQL Developer.

1.9.1 If You Need to Install Java Access Bridge

If you are using Java J2SE 1.6.0_24 or later but before Java 7 Update 6, you must manually install Java Access Bridge 2.0.2 after you install the screen reader (if it is not already installed).

Refer to the Java Access Bridge documentation available from this website for more information about installation and the Java Access Bridge.

The installer first checks the JDK version for compatibility, then the Available Java virtual machines dialog displays.

Note that the system directory is required in the PATH system variable.

1.10 Uninstalling SQL Developer

Before you uninstall SQL Developer, if you plan to install SQL Developer (the same or an updated version) later, you may want to save your existing database connections; and if so, see Migrating Information from Previous Releases before uninstalling.

To uninstall SQL Developer, remove the entire SQL Developer installation directory (that is, the directory named sqldeveloper and all directories and files under it in the hierarchy).

If you also want to remove all user-specific SQL Developer information, you should also delete the directory under which that information is stored (that is, the SQL Developer user information directory). For the location of this directory, see Location of User-Related Information.

If you have created a shortcut for SQL Developer, and if you do not plan to install SQL Developer into the same location again, you should remove that shortcut or modify the shortcut properties to reflect the new location.

1.11 SQL Developer Documentation

SQL Developer provides user documentation in the Oracle SQL Developer User’s Guide and in the online help. To see the help, click the Help menu, or click the Help button or press the F1 key in relevant contexts while you are using SQL Developer.

1.12 Oracle on the Web

Oracle provides a number of resources on the web. These are some sites you may find helpful:

Источник

Установка Oracle SQL Developer 4.0.3 и настройка подключения с сервером

Продолжаем осваивать СУБД от Oracle и сейчас давайте рассмотрим инструмент разработки и администрирования баз данных SQL Developer, мы узнаем, для чего нужен данный инструмент, затем установим его и настроим на работу с базой данных.

Как помните, в прошлом материале мы рассмотрели бесплатную СУБД от Oracle, а именно Oracle Database Express Edition 11g Release 2. И теперь для того чтобы разрабатывать базы данных и приложения на PL/SQL, необходимо установить соответствующий инструмент, и я, конечно же, для этих целей предлагаю использовать, также бесплатную программу SQL Developer, которую компания Oracle выпускает специально для разработки и управления баз данных на СУБД Oracle Database.

Для чего нужен SQL Developer?

Oracle SQL Developer — это бесплатная графическая среда управления базами данных и разработки приложений на языках программирования SQL и PL/SQL, разработанная специально для СУБД Oracle Database.

Данная среда написана на языке программирование Java и она работает на всех платформах где есть Java SE.

SQL Developer, позволяет просматривать объекты базы данных, запускать различные SQL инструкции, создавать и редактировать объекты базы данных, импортировать и экспортировать данные, а также создавать всевозможные отчеты.

Oracle SQL Developer помимо Oracle Database может подключаться и к другим базам данных, например, Microsoft SQL Server, MySQL и другим, но для этого необходимы специальные плагины, хотя возможность подключения к базе Access (mdb файл) есть по умолчанию.

На момент написания статьи доступна версия Oracle SQL Developer 4.0.3 (4.0.3.16.84) поэтому именно ее мы и будем устанавливать.

Где скачать Oracle SQL Developer?

Так как это продукт компании Oracle соответственно его можно скачать на официальном сайте компании, на данный момент доступна страница

После перехода на страницу мы соглашаемся с лицензионным соглашением путем выбора переключателя Accept License Agreement, затем выбираем платформу, на которую мы будем устанавливать, я хочу устанавливать на Windows 7 x32, соответственно выбираю:

Windows 32/64-bit — Installation Notes Download 226 M

Жму Download, потом, как и при скачивании Oracle Database Express Edition необходимо указать учетные данные от Oracle если они есть, а если нет, то соответственно необходимо завести учетную запись на Oracle (нажать «Создать учетную запись»). После чего загрузится файл sqldeveloper-4.0.3.16.84-no-jre.zip размером почти 226 мегабайт (это архив его можно разархивировать, например программой 7-zip).

Установка SQL Developer

Как было сказано, для работы среды SQL Developer требуется Java SE, поэтому у Вас на компьютере должен быть установлен Java Development Kit (JDK) это разработанный компанией Oracle, бесплатный комплект разработчика на языке Java, который включает стандартный компилятор, библиотеки классов Java и исполнительную среду JRE.

Если у Вас не установлен пакет JDK, и Вы выбрали тот же файл что и я Windows 32/64-bit — Installation Notes то, нам еще необходимо установить JDK, так как в данную сборку этот пакет не включен, если бы мы выбрали, например платформу Windows 64-bit — zip file includes the JDK 7, то, как видите из названия, комплект JDK включен в сам дистрибутив SQL Developer. (А если у Вас уже установлен JDK, то можете переходить сразу к пункту «Запуск SQL Developer».)

Поэтому нам сначала необходимо скачать и установить JDK, скачать его можно также на официальном сайте. Например, я буду скачивать, и устанавливать 7 версию JDK (кстати, доступна уже 8 версия, но я захотел именно эту). 7 версия JDK на сегодняшний день доступна на странице

я перехожу на эту страницу, и у пункта Java SE Development Kit 7u72 снова соглашаюсь с лицензионным соглашением, путем выбора переключателя Accept License Agreement и выбираю файл для 32 разрядных операционных систем Windows, а конкретно jdk-7u72-windows-i586.exe.

Установка Java SE Development Kit 7u72 (JDK)

У нас загрузился файл jdk-7u72-windows-i586.exe мы соответственно его и запускаем.

После запуска появится стартовое окно установщика JDK, мы жмем «Next»

Затем советую оставить все по умолчанию, жмем «Next»

И в процессе установке появится окно для запроса на установку JRE, жмем «Next»

Далее соответственно будет производиться установка JRE

После появления следующего окна установка будет завершена, жмем «Close»

Запуск SQL Developer 4.0.3

После распаковки архива sqldeveloper-4.0.3.16.84-no-jre.zip и установки JDK, переходим в распакованный каталог, открываем папку sqldeveloper и запускаем программу sqldeveloper.exe.

И при первом запуске SQL Developer попросит указать путь к комплекту JDK, и если Вы не меняли путь при установке JDK, то программа сама его подставит, нам останется нажать «OK», а если все же Вы изменили путь, то его необходимо будет указать.

И вот сейчас мы сможем наблюдать, как у нас будет открываться программа SQL Developer

После чего она соответственно откроется, и мы увидим стартовую страницу

Настраиваем подключение с сервером и базой данных

Так как в прошлом материале мы установили Oracle Database Express Edition, соответственно именно с этим сервером мы и будем соединяться.

Для этого жмем плюсик «New Connection»

После чего у Вас откроется окно настройки подключения, Вы соответственно вводите название Вашего подключения (Connection Name), имя пользователя (Username) и пароль (Password), если Oracle Database установлен на этом же компьютере, то в поле Hostname так и оставляем Localhost, порт 1521 (Port), SID, т.е. название базы данных, в случае с Express Edition это XE. (Если помните, я говорил что sql developer можно настроить на работу с базой Access mdb, для этого перейдите на вкладку Access). После ввода советую сначала нажать Test и если Вы получили ответ в строке состояния «Успех», т.е. Status: Success

То это означает что все хорошо, можем нажимать «Connect»

В случае если Вы получили в ответ следующую ошибку:

То, это означает, что в связи с языковыми настройками операционной системы Windows, Вы не можете подключиться, но, это можно исправить, если в конфигурационной файл, он расположен по следующему пути

в конец добавить две строки

затем перезапустить SQL Developer

После подключения к базе Вы увидите название своего подключения в списке подключений

Если плюсиком открыть подключение мы увидим все типы объектов в базе данных

Заметка! Начинающим программистам рекомендую почитать мою книгу «SQL код», которая поможет Вам изучить язык SQL как стандарт, в ней рассматриваются все базовые конструкции языка SQL, приводится много примеров и скриншотов.

Вот и все теперь можно писать запросы, разрабатывать функции, процедуры на языке PL/SQL, но об этом в следующем материале. Удачи!

Источник

Работа с приложением PL/SQL Developer

Страницы работы

Содержание работы

Работа с приложением PL/SQL Developer

1. Процедура входа в систему.

Вход в систему начинается с запуска приложения PL/SQL Developer. Окно входа в систему представлено на рис. 1.

Для подключения к сетевой реляционной базе данных необходимо ввести логин и пароль, а так же имя базы данных. После входа в приложение появиться окно, изображенное на рис. 2.

2. Создание новой таблицы.

Для создание новой таблицы используется пунк меню File->New->Table. Окно создания таблицы (рис.3) содержит 6 вкладок (ярлыков):

1. General – основное;

4. Checks – проверочные выражения;

5. Indexes – индексы;

6. Privileges – привилегии.

В нижней части окна расположены 5 кнопок:

· Apply – Применить все сделанные изменения.

· Refresh – Отменить все сделанные изменения (используется при редактирование таблицы).

· Close – Закрытие окна создание таблицы.

· Help – Вызов подсказки.

· View SQL – Показать результат сделанных изменений в виде SQL выражения.

На вкладке General содержаться следующие поля.

· Owner – Имя текущего пользователя, для которого создается таблица.

· Tablespace – по умолчание текущее рабочее табличное пространство для текущего пользователя. В Oracle приняты по умолчанию следующие табличные пространства:

Аналог корневого каталога – содержит таблицы словаря данных. Таблицы словаря данных содержат всю инфоромацию обо всех объектах базы данных. Хранить в этом табличном пространстве свои объекты небезопасно, так как это повышает вероятность возникновения проблем управления этим пространством.

Временный сегмент. Представляет собой динамически создаваемые объекты в базе данных, которые содержат данные во время выполнения больших операций сортировки. Из-за их динамической природы временные сегменты не следует хранить совместно с сегментами других типов.

Идексные сегменты приложений. Для увеличения производительности базы данных необходимо разделить табличное пространство где храниться таблица и где храниться её индекс. Для этого применяется табличное пространство indx. При создании таблицы база данных динамически создает индексы для всех указанных вами ограничений primary key или unique.

Сегменты отката. Обеспечивают в базе данных согласованность чтения на уровне операторов и транзакций.

Пользовательский сегмент. В этом сегменте обычно храняться пользовательские данные.

Сегменты инструментальных средств. Это табличное пространство создано для того что бы инструментальные средства oracle и других приложений создавали свои объекты не в табличном пространстве system.

Для создания таблицы в индексном табличном пространстве надо обязательно создать первичный ключ (primary key).

На вкладке Columns можно просматривать, добавлять, удалять и изменять поля таблиц. На риc. 4 представлен процесс редактирования таблицы person.

Символьное поле фиксированной длины, до 2000 байт в длину.

Поле фиксированной длины для набора символов, состоящих из несольких байт. Максимальный размер – 2000 символов или 2000 байт, в зависимости от набора символов.

Символьное поле переменной длины, до 4000 символов.

Поле переменной длины для набора символов, состоящих из несольких байт. Максимальный размер – 4000 символов или 4000 байт, в зависимости от набора символов

7 – байтное поде фиксированной длины, используемое для хранения всех дат. Время сохраняется как часть даты. При обращении дата выводится в формате DD-MON-YY, например 15-APR-04 для 15 апреля 2004 года.

Числовое поле переменной длины.В качестве значения может принимать ноль и любые положительные и отрицательные числа. Значения этого типа сохраняются в четырех или меньшем количестве байт. Определение number(9.2) показывает, что в поле столбца храниться всего 9 цифр, две из которых располагаются справа от десятичной точки.

Поле переменной длины, до 2 Гбайт

Поле переменной длины (до 2000 байт), используемое для хранения двоичных данных

Поле переменной длины (до 2 Гбайт), используемое для хранения двоичных данных

Двоичный большой объект длиной до 4 Гбайт

Символьный большой объект длиной до 4 Гбайт

Внешний двоичных файл; размер ограничивается операционной системой

Двоичные данные, представляющие идентификатор RowID.

Для удаления поля используется кнопка Delete column(-). При нажатии удаляется поле, которое выделено курсором. Можно удалить сразу несколько столбцов.

Источник

Читайте также:  Как установить дискорд если он не устанавливается
Adblock
detector
Database Releases Notes