Connect an Oracle database
The same shape as the Snowflake section, on the other engine: an Oracle
source is queried in place. Nothing is copied. A question over it is
compiled into one SELECT against one view and sent to your database over a
read-only session, and the answer is built from what comes back. Your database
sees one statement per question, bounded by the source's statement timeout, and
nothing else. (Until 0.12 these docs described the opposite: a whole copy of
the view every week, kept for two years. That shape still exists — see If you
want the plan's history below — but it is no longer what an Oracle view means
by default, because a rolling plan nobody asked to keep history of does not
warrant a hundred copies of itself.)
Read this the same way as the Snowflake section: skip it unless a database source appears in your recipe list under Admin → Context streams. Which sources are offered is fixed by the release you installed, and nothing here is something you can add yourself.
Writing the document itself — which view, which columns, what each one means — is Read an Oracle view as a context stream. This page is the connection underneath it: what your DBA prepares, what to enter, and what the probe proves.
When an Oracle source is your organizational context stream, per-person answers resolve through it, as they do through a Snowflake one. The ingest job reads the two identity columns the recipe names — the employee id and the address — out of the view, about once a day, and compiles the identity crosswalk from them. Two columns per person are held in Prism for that purpose; the plan itself is not. Questions scoped to a leader's organisation ("everyone who reports to X") still need a landed directory — an uploaded staff list, or a snapshot instance of the same view — and say so when refused.
What your DBA prepares, and it is the long pole
The ingest side is finished: the Oracle driver ships inside the appliance, so there is nothing to install, enable or mirror to read your view. So is the admin page's probe — the app carries that same driver, so an Oracle source is probed, approved and enabled from the screen like any other. Proving it below says what a passing probe does and does not tell you, which is the part worth reading before you plan around it.
Everything on your side of the connection is ordinary, and it is worth starting now because it is the part with a lead time:
| What | Why it is asked for |
|---|---|
| A view, not a table | the source reads exactly one view. What is in it is what Prism can ever see, which makes the view itself the access control |
| A local database user for the appliance | one service account for the whole appliance, never one per person. It appears in your audit trail as itself |
SELECT on that view, and nothing else | the grant is the control. Prism opens its walk with SET TRANSACTION READ ONLY, but that blocks DML and not DDL, so it is defence in depth over a read-only grant and never a substitute for one |
| A row identity column, if the view can carry one | asked for so a fan-out on a join is detectable; a live query needs no key to run, so a view without one still connects. A last-updated timestamp is no longer asked for — nothing is copied, so nothing needs to know what changed |
| Host, port and service name, and a network path to the listener | one Oracle Net connection, outbound from the Prism namespace to your listener's port |
Two limits that are worth knowing before your DBA plans around them, because both are properties of the driver rather than settings we chose to leave off:
- No
sqlnet.oraof ours is read, and there is nooraaccess.xml. An estate that keeps its connection policy in those files does not get it applied here; the connection is exactly the parameters below. In thin mode — the default — the driver has no notion of those files at all. In thick mode (below) the Oracle client library would read asqlnet.oraif one were placed on its path, and Prism's images ship none, so the effect is the same: the connection is the parameters, plus whatever your server requires and the client agrees to. - Wallets are PEM or nothing. A
cwallet.ssoauto-login wallet cannot be used, in either mode: the appliance has nowhere to tell it about one. If your policy mandates one, say so before the account is created — it is a real finding and it changes what we ship, rather than a value to set.
Neither of these is a workaround waiting to be found. Tell us early and the answer is a different build, not a different value.
If your database requires Native Network Encryption, that is not one of
those findings — it is a value. SQLNET.ENCRYPTION_SERVER = REQUIRED (with or
without SQLNET.CRYPTO_CHECKSUM_SERVER) refuses every connection Prism's
default driver mode makes, before a session exists, and the source's verdict
says so by name. The fix is one chart value, oracle.mode: thick, and no new
build: see
When a database requires Native Network Encryption.
What to enter, on the Oracle source
Sign in as a super admin, open Admin → Context streams, pick the database source from the recipe list, and give it its connection parameters and its credential. None of them is a chart value: the register form shows one field for each parameter the manifest declares.
| Parameter | What it is |
|---|---|
db_host | the hostname of your Oracle listener |
db_port | the listener's port — 1521 unless your estate moved it |
db_service | the service name of the database, not an SID and not a TNS alias. tnsnames.ora is not consulted, so an alias that works from your DBA's laptop is not a value that works here |
db_user | the service account the view is granted to. It is configuration, not a secret: it appears in your own audit trail and in every authentication failure, and somebody has to be able to read it to fix one |
Enter them right the first time. Once the source is registered, none of the
four can be changed, and neither can anything else under the manifest's
connection:, statement_timeout and read_only_role included: on an Oracle
source the whole connection block is fixed at registration. Edit
parameters… on the source's page does not offer them, and the Manifest
tab's Save refuses any change under connection:. Changing any of it is
deleting the source and registering it again, which also means entering the
password again.
If you wrote the manifest yourself, register it with Paste a manifest… instead of a recipe. Once the form has read the manifest, it shows a field for each connection parameter the manifest declares, and a required one left blank is refused by name. That form has no password field: enter the password after registering, on the source's Credential tab.
The credential is that account's password, entered on the source in the
admin page. It is encrypted with the installation's ENCRYPTION_KEY and read
back in exactly two places: by the app, when an admin probes the source, and by
the ingest job on its schedule. Nowhere else — and it is never returned by the
API, never written to a log, and never carried in a probe verdict.
There is no schema parameter, deliberately. Either create the view in the service account's own default schema, or give the account a synonym for it. A schema name is the one part of this that differs per customer in a way a shipped recipe cannot carry, and a value nobody remembers to set is a worse failure than a synonym somebody has to create once. If your estate genuinely cannot do either, that is worth telling us — it is a small additive change and not a redesign.
A listener signed by your own certificate authority
Prism checks a TLS (tcps) listener's certificate against the public
certificate authorities its images carry. If your listener's certificate comes
from your own authority, give Prism that authority's certificate in the chart
values, as PEM:
oracle:
caBundle: |
-----BEGIN CERTIFICATE-----
(your authority's certificate)
-----END CERTIFICATE-----
or, from a file, --set-file oracle.caBundle=your-ca.pem on helm upgrade.
- Give your authority's root certificate, the self-signed one at the top of the listener's chain, with any intermediates beside it. For a listener whose certificate is self-signed, give that certificate.
- It is added to the public authorities, not used in place of them, and applies to every Oracle source in the installation.
- Thin mode only. With
oracle.mode: thickthe chart refuses to render it, because Oracle Instant Client does not read it. - A value with no PEM certificate is refused at render. One that cannot be
read as certificates, or holds no certificate, is refused with a
message naming
oracle.caBundle: the app and the ingest job stop at start-up, and a question or a probe that needs an Oracle session gets that message.
Proving it
Sign in as a super admin, open Admin → Context streams, pick the Oracle source from the recipe list, enter the four connection values and the password, and press Register. Then press Test on the source's page. It opens a real Oracle Net session to your listener, from the appliance, with the credential the row holds now — and then reports what that session established.
One word on this screen, whatever it runs: Test. What that means for a source depends on its kind — an Oracle session here, a signed-in request to an API for a source Prism copies, a compiled and explained statement for one it reads in place, a parse of the file for a roster — and the screen says which it did. The button used to be named after the mechanism, differently in four places, and the mechanism is not the thing you are trying to find out.
Storing the password IS a test, and a test that fails refuses the store.
The button that stores it is Register on the register form, and Save and
test on the source's Credential tab. There is one credential on
the row rather than a copy each side, so the two steps are one request: Prism
opens the session with the password you just typed, and only a verdict it is
willing to stand behind gets written. A password your database rejects
(ORA-01017) is not stored and whatever was there before is untouched — which
is the behaviour you want, and it is the same for every source type. But a probe
that cannot reach your listener at all refuses the store for the same reason:
a network path not yet open, a listener that accepted and closed, or the timeout
are all "no verdict", and no verdict means no write. So an Oracle password cannot
be parked on the row before the egress exists. Two ways round it, and the first
is usually right: prove the egress first and then store the password
once, or — if your change windows force the credential to land before the
firewall does — store it without testing it: Save without testing on the
source's Credential tab, or POST /api/admin/sources/<id>/credential with
{"probe": false} in the body. Then press Test on the source once the path
is open. Either way nothing reaches
enabled until a probe has actually passed: an unprobed credential records
not_probed, which enable refuses. Rotating a credential
is the same request and the same rule.
Then, and this step is easy to miss because nothing prompts for it: approve
the source, and only then enable it. A source moves registered → probed → approved → enabled, and enable is refused from probed. Approving is you
saying you have read the manifest; enabling is you saying it may answer.
A passing probe means these things and no more:
- the listener was reachable;
- the credential was not rejected;
- and — only where the source names a schema — the session Prism got is the one it asked for: the schema the session actually ended up in is read back out of it and compared with the one asked for. Where the source names no schema there is nothing to compare, so the verdict makes two claims rather than three, and the session it established is reported without being vouched for.
That third one is worth its own sentence, because a login that authenticates
perfectly well can still land somewhere other than where you meant: a login
whose default schema is not the one the walk expects sees none of its tables. So
Prism compares rather than assumes, and a session in a different schema is a
refusal naming the field — it cannot buy enabled. The comparison folds case,
because the schema travels unquoted and Oracle answers PRISM where the
connection asked for prism, and refusing a correctly configured install would
be worse than the fault it replaced.
The service name is reported, not compared, and that is deliberate. Your
listener refuses a service name it does not know before there is a session at
all, so there is nothing for a comparison to catch — and there is something it
would wrongly catch. A service created the documented way,
DBMS_SERVICE.CREATE_SERVICE(service_name => 'svc840', network_name => 'svc840net.example.com'), is registered with the listener under its network
name, so that is the value db_service must carry; inside the session Oracle
answers the internal svc840. Comparing those two would refuse a correct
install with no value you could type to get past it. So the verdict shows you
the service the database says you are on — useful on a host running two of them
— and lets you judge it.
A passing probe does not mean your view exists, that the account can read it, or that any column you named is real. The probe names no object of yours at all — it asks Oracle about the session and stops there. The Test on the source's Manifest tab is what finds those out: it compiles every column the recipe names into a statement, has Oracle parse each one against your view, runs each with no rows returned, and reports every column that did not resolve with the view's real column list beside it — before the source can be enabled. That is the check to run once the view is cut, and again after any change to it.
A refusal names the engine's own code, and that code is the thing to put in a ticket:
ORA-01017— the database rejected this installation's credential: the password, the login name, or the account's ability to create a session at all. Nothing about the network is wrong.- a service name the listener does not know arrives as
DPY-6005withDPY-6001inside it — the listener answered and does not serve that name. An SID or atnsnames.oraalias entered asdb_servicelands here, because neither is resolved. - nothing answered at that host and port — the listener is down, the port is wrong, or the network path is not open. Prove the egress is the check that separates those from a credential fault.
- the listener accepted and closed —
DPY-4011, and it comes back in milliseconds rather than at the timeout. Something took the connection and hung up without giving a session: node validation on the listener (TCP.VALIDNODE_CHECKINGwith the Prism pod's address not inTCP.INVITED_NODES), a TLS-only (tcps) listener dialled in clear, or a firewall or proxy in the path. It is neither a credential fault nor a timeout, and the fix is on your listener or your network rather than in this screen. - the timeout — the probe bounds itself, so an address that swallows packets comes back in seconds instead of hanging the screen.
Oracle's own message never travels into the verdict: it quotes the statement, the schema and sometimes the service name, so what you get is the code, the address dialled, the login and the elapsed time, deliberately and no more.
What has not changed, and it is still the long pole by a wide margin: prepare the database side now. The view, the service account, the grant, the network path and the answers to the two thin-mode questions above are the same whatever the screen does, and no probe verdict shortens any of them.
The sequence, then, is the ordinary one:
- Probe the source and read the verdict. It reports what the session actually established, and it is where a wrong service name, a rejected password or a blocked network path is named as itself.
- Approve the source, then enable it, and let one scheduled run complete.
- Check the row count against what your DBA sees in the view. This is the check worth doing by hand once: a credential that authenticates cleanly and sees an empty view is the failure this whole procedure is arranged around, and from the chat it is indistinguishable from a working product with nothing to say.
And enabled is not verified. Enabling an Oracle source means this
installation demonstrably opened a session to your database. Whether the figures
it copies are right is step 3 and the questions you ask afterwards, and it is
not something the appliance can decide.
Rotating the password
Replace the credential on the source and probe again. The next scheduled run uses it. As with a warehouse, there is no Secret to patch and no pod to roll.
If you want the plan's history
A live query answers for the view as it stands now. If you want to ask how the plan changed between March and June, the stream has to keep dated copies — which means running it as a snapshot rather than reading it live.
Change the kind on the stream you already have. On registration, open the
recipe in the editor, set kind: snapshot and give it an ingest block with a
query stream and a deliberately short keep (a quarter of weekly copies is
P90D). The ingest job then takes a dated copy of the view on that schedule and
keeps that many.
Read an Oracle view as a context stream
carries that whole document for the recipe's example view, ready to adapt.
A document you edited is walked like any other. The ingest job walks the document the stream holds, under whatever name you gave it. That includes one you wrote, pasted, or changed in the editor before registering it. It checks only that the document names nothing this release does not implement.
Store the credential on the source. The ingest job never lends its own configuration to a document of your own: the document chooses where its requests go, so the job does not hand it a secret it holds for another stream. A stream with no credential stored on it wears not ingested on Admin → Context streams until you enter one, and the self test's ingest dispatch line names it. Connection settings are covered the same way: a document of your own never reads them from the job's environment, whatever it says.
A document that names a part this release does not implement wears not ingested with the part named, and no edit on your side supplies it. Ask us.
On 0.15.x and earlier, a stream carrying an edited document under a name of its own is never walked, so keep the name the recipe ships with there. Do not rename an existing stream to a prebuilt name to work around it: the name is usually taken, and where it is free the prebuilt document takes over the walk and your edits stop being used.
Size it before you choose, because the multiplier is the schedule and not the view: each copy is kept whole, so a weekly stream kept two years is about a hundred and five copies of the whole plan. One copy of a 2.6-million-row view is roughly 1.2 GiB, which puts that shape north of 100 GiB and a monthly stream kept a year at about 16. Decide the pair — how often, and how long — against the volume you are willing to give it, and expect the pre-flight to warn you: the warning starts at five copies, so every realistic shape trips it.
Only one stream can hold the organizational designation.