Tables created by sonar in the database [duplicate] - sonarqube

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
What is the sonar database structure?
Just want to ask which tables will be created after sonar get connected to the database? And also tables used to store the information like "Lines of code" "Classes" "Comments" etc. Could any one give me some documentation about these? Thanks

If you have a clean database with no tables, then Sonar will create all the required tables the first time you start it.
To know more about the tables, you can have a look at this DDL file that we are using for our tests:
https://github.com/SonarSource/sonarqube/tree/master/server/sonar-db-core/src/main/resources/org/sonar/db/version/schema-h2.ddl
The project split, but the 4.5.5 version of the DDL orginally linked in the answer can be found here:
https://github.com/SonarSource/sonarqube/blob/4.5.5/sonar-core/src/main/resources/org/sonar/core/persistence/schema-h2.ddl

Related

Automatically generate setup for various different customers [duplicate]

This question already has answers here:
Compile Inno Setup installer for specific component only
(1 answer)
How do I build two different installers from the same script in Inno Setup?
(2 answers)
Closed 13 days ago.
What is the best way to create automated setups to deliver our software to different customers (each customer should only get access to those files that they need)?
We already have a script that generates a working setup whenever someone updates our repository on GitHub.
But naturally every customer uses very specific files, which we need to handle.
After thinking a bit I have come up with two possible concepts per section:
[Setup Content]
The setup only holds very general data. All customer-specific files are stored on a webserver.
OR
The setup holds everything.
[Access Custom Settings]
Each customer will need to enter their id to download custom settings.
OR
A wrapper setup is generated per customer. It does nothing more than temporarily unwrap the main setup and send the customer id as an argument.

Build number into published database?

Can I somehow get a build number into an extended property of my published database?
I use SSDT Projects and tfs build.
I want to get as much information as possible into the database.
I know there are a few variables, such as database name. Perhaps there are more?
Even build date would be useful (timestamp from when the deployment script was created).
But ":setvar ts GETDATE()" won't work since the GETDATE not being evaluated.
EDIT: I got it working by editing the xaml and then using XmlPoke. I can post more details if there is interest.
Pass the build number to a post-deployment script that is updating the extended property

TFS 2010 version control

We want to start using the TFS version control on our project. I read the tutorial and noticed that TFS creates tables in the sql db. My questions are:
What are these tables for?
Where is the vs solution actually stored?
How can I use more then one instance of our solution from another computer (another developer)?
TFS stores pretty much all its data in few SQL database: source control, work items, build definitions, build results etc.
In the SQL database for the Team Project Collection, specifics about which tables etc should not matter to you. Users setup a workspace which maps the directory structure in source control to a place on their local disk.
I'm not sure what you're asking here, can you try clarify your question?

Oracle request (how to import data excel to oracle) [duplicate]

This question already has answers here:
Load Excel data sheet to Oracle database
(6 answers)
Closed 8 years ago.
What are the best and/or easiest methods for importing data from Excel (.xls) into an Oracle database?
Please, kindly clarify with any code examples you can.
One of the most common way for importing data from Excel to Oracle Db is to export the contents as a CSV and use SQL*Loader to import it into the table.
The easiest way however, is to use an IDE as mentioned in the comments like TOAD or SQL Developer (which is my favourite Oracle DBM tool).
See this article for more alternative ways.
you can also use perl to read the excel spreadsheet and insert the values from the spreadsheet into the db. Take a look at DBD::Oracle and Spreadsheet::ParseExcel in CPAN.

Automated Oracle Schema Migration Tool [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
What are some tools (commercial or OSS) that provide a GUI-based mechanism for creating schema upgrade scripts? To be clear, here are the tool responsibilities:
Obtain connection to recent schema version (called "source").
Obtain connection to previous schema version (called "target").
Compare all schema objects between source and target.
Create a script to make the target schema equivalent to the source schema ("upgrade script").
Create a rollback script to revert the source schema, used if the upgrade script fails (at any point).
Create individual files for schema objects.
The software must:
Use ALTER TABLE instead of DROP and CREATE for renamed columns.
Work with Oracle 10g or greater.
Create scripts that can be batch executed (via command-line).
Trivial installation process.
(Bonus) Create scripts that can be executed with SQL*Plus.
Here are some examples (from StackOverflow, ServerFault, and Google searches):
Change Manager
Oracle SQL Developer
Software that does not meet the criteria, or cannot be evaluated, includes:
TOAD
PL/SQL Developer - Invalid SQL*Plus statements. Does not produce ALTER statements.
SQL Fairy - No installer. Complex installation process. Poorly documented.
DBDiff - Crippled data set evaluation, poor customer support.
OrbitDB - Crippled data set evaluation.
SchemaCrawler - No easily identifiable download version for Oracle databases.
SQL Compare - SQL Server, not Oracle.
LiquiBase - Requires changing the development process. No installer. Manually edit config files. Does not recognize its own baseUrl parameter.
The only acceptable crippling of the evaluation version is by time. Crippling by restricting the number of tables and views hides possible bugs that are only visible in the software during the attempt to migrate hundreds of tables and views.
Schema Compare for Oracle should meet your requirements. This can be downloaded here:
http://www.red-gate.com/products/schema_compare_for_oracle/index.htm
I don't think SQLDeveloper is the way to go. It is great for migrating between different databases, not the incremental changes to a data model.
Have you looked at the official tool (more meta link) for this? Called Oracle Migration Workbench.
Toad for Oracle with the DBA module does all of this quite nicely with the exception of the rollback script.
cx_OracleTools
If you don't mind command-line oriented tools this open source package will do what you require, with the exception of generating rollback scripts.
ExportObjects [options]
Export all of the objects in a schema as a set of directories named after
the type of object containing a set of files named after the object itself.
GeneratePatch [options] FROMDIR TODIR
Generates a patch for differences in objects in two directories (which may
have been created with ExportObjects) and ensures that the patch script can
be executed without fear of encountering errors because of dependencies between
objects.
http://cx-oracletools.sourceforge.net/

Resources