📄 readme
字号:
What?=====This directory contains SQL scripts to create the initial NAV databases.Files=====manage.sql - Creates the manage databasetypes.sql - Initializes the equipment vendor and type tables of the manage databasesnmpoid.sql - Initializes the SNMP OID registry of the manage databaselogger.sql - Creates the navlog databasenavprofiles.sql - Creates the navprofiles databasearnold.sql - Creates the arnold databaseHow to create the databases from scratch========================================This section assumes your PostgreSQL server is configured to directlyidentify the local unix account postgres as the postgres database user(with the "ident sameuser" directive in pg_hba.conf). su from root tothe postgres account before performing these commands.First, create a database user for NAV, and choose a password for it: createuser --no-createdb --no-adduser --pwprompt navNow, create the databases: createdb --owner nav --encoding UTF-8 manage createdb --owner nav --encoding UTF-8 navprofiles createdb --owner nav --encoding UTF-8 logger createdb --owner nav --encoding UTF-8 arnold createlang plpgsql manage createlang plpgsql navprofilesThen, finally, initialize the databases. These scripts are run as thenav user you created above, so you will be prompted for the passwordyou chose. psql -f manage.sql manage nav psql -f types.sql manage nav psql -f snmpoid.sql manage nav psql -f navprofiles.sql navprofiles nav psql -f logger.sql logger nav psql -f arnold.sql arnold navPlease be aware that on some installations, the PostgreSQL superusermight not be named postgres.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -