Panorama dos bancos — verificação de leitura
Data da coleta: 2026 (sessão atual). Todas as consultas são somente leitura (SELECT / COUNT / DESCRIBE).
Conexões
| Alias | SGBD | Host:Porta | Base | Status |
|---|---|---|---|---|
sqlserver |
SQL Server 2017 (14.0.2052.1) | 172.19.1.77:1433 | master | OK |
mysql |
MySQL 5.7.42 | 172.19.1.78:3306 | IPATINGA_NOTAS | OK |
dbtest → as 2 conexões OK.
Catálogo (tabelas por base)
| Base | SGBD | Tabelas |
|---|---|---|
| TRIBUTARIO_IPATINGA | SQL Server | 591 |
| SIGBANCOS_IPATINGA | SQL Server | 149 |
| SIGCARTORIOS_IPATINGA | SQL Server | 96 |
| IPATINGA_NOTAS | MySQL | 306 |
Listas completas: catalogo_tributario.txt, catalogo_sigbancos.txt, catalogo_sigcartorios.txt, catalogo_mysql.txt.
Volumes medidos
| Base | Tabela | Linhas |
|---|---|---|
| IPATINGA_NOTAS | nfse | 3.235.700 |
| IPATINGA_NOTAS | Contribuinte | 91 |
| IPATINGA_NOTAS | cnae_x_servico | 761 |
| IPATINGA_NOTAS | servico_cnae | 848 |
| IPATINGA_NOTAS | servico | 0 |
| IPATINGA_NOTAS | plano_cosif | 0 |
| IPATINGA_NOTAS | servico_cosif | 0 |
| TRIBUTARIO_IPATINGA | Contribuinte | 95 |
| SIGBANCOS_IPATINGA | Pagamento | 6.527 |
| SIGCARTORIOS_IPATINGA | Pagamento | 267 |
| SIGCARTORIOS_IPATINGA | AtoLancamento | 35.862 |
| SIGCARTORIOS_IPATINGA | Boleto | 362 |
| SIGCARTORIOS_IPATINGA | Cartorio | 10 |
Consultas executadas
# catálogo
./bin/dbmysql --tables
./bin/dbsqlserver -d <BASE> --tables
# estrutura
./bin/dbmysql --describe <tabela>
./bin/dbsqlserver -d <BASE> --describe <tabela>
# amostras (100 linhas cada, salvas em CSV)
./bin/dbmysql --format csv "SELECT id, numeronota, competencia, prestador_nome, tomador_nome, valor_nota, valor_servico, situacao FROM nfse LIMIT 100"
./bin/dbsqlserver -d TRIBUTARIO_IPATINGA --format csv "SELECT TOP 100 id, razao, ccm, cnpj, email, abertura FROM Contribuinte"
./bin/dbsqlserver -d SIGBANCOS_IPATINGA --format csv "SELECT TOP 100 id, total, imposto, pagamento, identificador FROM Pagamento"
./bin/dbsqlserver -d SIGCARTORIOS_IPATINGA --format csv "SELECT TOP 100 id, total, imposto, pagamento, identificador, Boleto_id FROM Pagamento"
Observações
ArquivoBoletoRegistroexiste em SIGBANCOS_IPATINGA, não em SIGCARTORIOS_IPATINGA (lá o equivalente éBoletoRegistrado) — query com essa tabela no SIGCARTORIOS retornaInvalid object name.servico,plano_cosifeservico_cosifexistem no schema MySQL mas estão vazias (0 linhas).identificadorévarcharem SIGBANCOS ebigintem SIGCARTORIOS (mesma logical table, schemas divergentes).