Skip to content

Repository files navigation

ACMA Radiocommunications Database (MySQL schema)

Based on Australian Communications and Media Authority information.

The Australian Communications and Media Authority maintains a register of radiocommunications licenses (RRL) which is available online at:

A daily extract of the data is available from the ACMA in .csv format, along with an Oracle DB schema. This repository is a conversion of the schema to MySQL.

Empty fields

Empty fields are denoted with ,, in the .csv files, these need to be explicitly modified to NULL for import into MySQL. Using two -e options in the sed command will capture mutiple adjacent NULL fields:

sed -i -e 's/,,/,NULL,/g' -e 's/,,/,NULL,/g' /path/to/file.csv

Replace any trailing commas with ,NULL (where the last column of data is NULL):

sudo sed -i 's/,$/,NULL/g' /path/to/file.csv

Remove any escape characters from the exported data:

sudo sed -i 's/\\//g' /path/to/file.csv

Importing Data

Import the data to each table (ignoring the header row and disabling foreign key checks). See import statements.

LOAD DATA INFILE '/var/www/html/<table>.csv'
INTO TABLE <table>
FIELDS TERMINATED BY ','
ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 ROWS;

Entity Relationship Diagram

ERD generated by Vertabelo

ERD

About

MySQL database schema for ACMA radiocommunications database

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors