Oracle ORA-02287: sequence number not allowed here
Get Social!I’ve recently hit an issue when trying to include a sequence.nextval in an Oracle database view. the database throws the following error: [crayon-5ade79e587269200835025/] I can see why that...
View ArticleRun Multiple Bash Commands In Parallel
Get Social!Bash, whilst great for simple things, can be tricky to use more advanced programming techniques that are easily exposed in things like Java, or Go. Multithreading is one such problem. I...
View ArticleEXECUTE IMMEDIATE MySQL
Get Social!Unlike Maria DB, MySQL does not currently support the command EXECUTE IMMEDIATE. Essentially EXECUTE IMMEDIATE is shorthand for perparing a statement, executing a statement and then finally...
View ArticleDocker images Filter Options
Get Social! The below is an excerpt from docker.com danglingboolean – true or false – will show dangling images.labellabel=<key> or label=<key>=<value>...
View ArticleMySQL/ MariaDB Schema Size
Get Social!Create a MySQL or MariaDB view to show the aggregated size of each schema in the database: [crayon-5bae92b00d529930283297/]
View ArticleMySQL/ MariaDB Table Size
Get Social!Create a MySQL or MariaDB view to show the size of each table in the database: [crayon-5bae92b00d3db433058330/]
View ArticleView Table Sizes in MySQL/ MariaDB Databases
Get Social!MySQL and MariaDB present a bunch of queryable objects that give you all sorts of insights into what’s happening with the database. The size of data stored in tabels is one such thing that...
View Article.gitignore OS generated files
Get Social!A gitignore file to ignore standard OS (usually Windows) generated files. Often you’d use this in addition to a more technology specific gitignore set. [crayon-5bae92b00d0b9853240386/]
View Articlegitignore file for Netbeans Projects
Get Social!A gitignore file for most Netbeans projects to keep the build and local configuration files out of your git repository. [crayon-5bae92b00cf45160109513/]
View Articlegitignore file for Nodejs Projects
Get Social!An example gitignore file for Nodejs projects to ensure that local environment variables, build related output and modules are not committed to the git repository....
View ArticleHow to change the listening port for PostgreSQL Database
Get Social! The default TCP port for PostgreSQL is usually 5432, however this can easily be changed in the postgresql.conf configuration file, which is the main configuration file for the database...
View Articlegitignore file for Eclipse Projects
Get Social!This is an example of a .gitignore file for an Eclipse project to ensure temporary files, build files and project settings are not added to repository commits. [crayon-5bae92b00b876331263504/]
View ArticleCockroachDB systemd script
Get Social! This is a simple systemd script for CockroachDB. It works for single node installations or multiple nodes, however you’ll need to manually join each node to the cluster before using the...
View ArticleHow to exit from a MySQL/ MariaDB Stored Procedure/ Function Prematurely
Get Social! MySQL and MariaDB enable you to define your own error conditions and to report back to the SQL client both a return code and an error message. As soon as you raise the condition then MySQL/...
View ArticleMySQL/ MariaDB Error Code: 1329. No data – zero rows fetched, selected, or...
Get Social!The above error can occur when calling a cursor results in no rows, or no more rows if called in a loop. Whilst the error message is descriptive about what has happened physically, you may...
View ArticleList of Bank Holidays For England in SQL Format
Get Social!First off, create a table to store the bank holiday values. You may need to adjust this slightly depending on your SQL server technology being used (this was tested on MySQL Server)....
View Articlegitignore file for Go Projects
Get Social!This is a gitignore file for a Go project to ensure temporary files and build files are not added to git repository commits. [crayon-5bbe85b7975c8607455382/]
View Articlerclone Systemd startup mount script
Get Social!rclone Rclone is a command line utility used for reading and writing to almost any type of cloud or remote storage. From Google Drive to Ceph, rclone supports almost any cloud-based remote...
View ArticleDocker Compose yml for WordPress
Get Social!The below docker-compose yml file will create two Docker containers for running WordPress; a MySQL database and an Apache PHP web server. Create a new directory and save the above file...
View Article