I can not create tablespace in PostgreSQL 9.1
Create tablespace rgu location '/postgresql';
ERROR: directory "/postgresql" does not exist.
The rights to this folder are provided drwxrwxrwx postgres
Related
i receive below message when trying to upgrade from neo4j 3.5.2 tot 3.5.3 in the desktop: Failed to upgrade database: Error: EISDIR: illegal operation on a directory, open 'C:\Users\xxx\.Neo4jDesktop\neo4jDatabases\database-ffca7d5a-b65a-45b9-ab6d-3c15cc302390\installation-3.5.3\data'
I tried it with and without a database with same result.. i did not check the auto migrate datastore option and my conf file allows auto upgrade from prev versions .. also removed plugins and tried again with same result..
Any clues ?
Thanks Koen
I created a directory where I'm storing my current graph.db which is different than the default location of /var/lib/neo4j/data/database. I changed my neo4j.config file providing new location of the database as dbms.directories.data=/neo4j/data, but somehow I cannot start the neo4j server using systemctl start neo4j
When using a deb or rpm distribution package (I assume you are because you are using systemctl to start the database), the database is run under neo4j user by default and this user needs to have write permissions to the data directory.
Does the user have permissions to write to your new /neo4j/data directory?
Having successfully created and populated a database with 200,000+ nodes, I would like to create a dump as a backup.
The instructions in the documentation are simple:
neo4j-admin dump --database=<database> --to=<destination-path>
But it's not clear what to use for <database>. If I use graph.db (or leave out the option) I get an error. I know the location of the database folder.
If I put the path to the database I get the following error:
unexpected error: 'database' should be a name but you seem to have specified a path
OS: Windows 10
Partial answer:
The database parameter refers to databases that are located in neo4jFolder/data/databases folder, where neo4jFolder is the folder of the unzipped install of Neo4j.
For example: I unzipped the neo4j install zip into E:\Program Files\neo4j-community-3.3.2. My database was elsewhere on the drive. So I copied the database to E:\Program Files\neo4j-community-3.3.2\data\databases\MyDatabase. Then I was able to run neo4j-admin dump --database=MyDatabase --to=backup5.dmp successfully.
I don't know if it's possible to run dump on databases that are not found under /data/databases. I also don't know how to run a dump when Neo4j is installed with the exe installer. My solution is for the zip file installation.
I have recently updated Fedora 21 to 25. I thought I had caught most issues and decided it was time to update Rails and postgresql but I am stuck on the latter.
Postgresql was functioning without visible issues prior to updating to Fedora 25. I can access my database through my Rails application and have CRUD functions so I believe the database is still good.
But, if I try to open postgresql CLI using psql database_name I can not access the database and receive the following error message:
psql: symbol lookup error: psql: undefined symbol: PQsslInUse
I get the same error for anything calling psql, i.e. psql --version gives the same error.
The command postgresql-setup upgrade tells me I am "using obsoleted argument syntax" and states arguments transformed to: postgresql-setup --upgrade --unit postgresql. This generates the following error:
ERROR: Cannot upgrade because the database in /var/lib/pgsql/data is of
version 9.3 but it should be 9.4
When I look at the above directory it appears that I have 2 data directories, the one noted above that holds a file PG_VERSION that stores 9.3 and there is also /var/lib/pgsql/9.4/data that holds a file PG_VERSION that stores 9.4.
So, how do I find out which database version has my current database? If I have been operating on postgresql 9.3 how do I move to 9.4 and then to 9.5 (eventually to 9.6!).
Newbie here. Trying to setup the hr sample schema on ORACLE12C - CENTOS box but get two error codes.
$ sqlplus connect as sysdba
SQL*PLUS Release 12.1.0.2.0 Production on Tue Jan 31 04:50:15 2017
Enter Password:
Connected to: Oracle Database 12c Enterprise Edition 12.1.0.2.0 -
64bit Production With the Partitioning, OLAP, Advanced Analytics and
Real Application Testing Options.
SQL> #?/demo/schema/human_resources/hr_code.sql
Procedure created.
BEFORE INSERT OR UPDATE OR DELETE ON employees
*
ERROR at line 2: ORA-00942: table or view does not exist
ALTER TRIGGER secure_employees DISABLE
*
ERROR at line 1: ORA-04080: trigger 'SECURE_EMPLOYEES' does not exist.
WARNING: Procedure created with compilation errors.
Warning: Procedure created with compilation errors.
AFTER UPDATE OF job_id, department_id ON employees
*
ERROR at line 2: ORA-00942: table or view does not exist
Commit complete.
Please help. Don't really know what to do from here, Much thanks.